Apply kernel updates without rebooting Compute nodes
You can enable kernel live patching (kpatch) on a set of Compute nodes to apply critical security updates or bug fixes without rebooting your system or disrupting your workloads.
About this task
The kpatch feature is disabled by default in Compute nodes in Red Hat OpenStack Services on OpenShift. To enable kpatch on a set of Compute nodes, you must add the edpm_update_enable_kpatch: true parameter to the OpenStackDataPlaneNodeSet custom resource (CR) that defines those nodes. You include these OpenStackDataPlaneNodeSet CRs in the files that you use to update the data plane nodes during the minor update. Repeat the following procedure for each OpenStackDataPlaneNodeSet CR where you want to apply kpatch.
For more information about using kpatch, see Applying patches with kernel live patching in Managing, monitoring, and updating the kernel.
Procedure
Results
- Verify that the
kpatch-install.yamlCR is deployed and has a status of “Setup complete”:$ oc get openstackdataplanedeployment NAME NODESETS STATUS MESSAGE edpm-deployment-post-ceph ["openstack-edpm"] True Setup complete edpm-deployment-pre-ceph ["openstack-edpm"] True Setup complete kpatch-install ["openstack-edpm"] False Deployment in progress - Log in to the Compute node and verify that
kpatchis installed and loaded:$ ssh <compute_node> $ sudo systemctl status kpatch kpatch.service - "Apply kpatch kernel patches" Loaded: loaded (/usr/lib/systemd/system/kpatch.service; enabled; preset: disabled) Active: active (exited) since Fri 2025-07-11 09:40:21 UTC; 5s ago Process: 465148 ExecStart=/usr/sbin/kpatch load --all (code=exited, status=0/SUCCESS) Main PID: 465148 (code=exited, status=0/SUCCESS) CPU: 24ms Jul 11 09:40:21 osp-compute-fbp5hxc8-0.example.com systemd[1]: Starting "Apply kpatch kernel patches"... Jul 11 09:40:21 osp-compute-fbp5hxc8-0.example.com systemd[1]: Finished "Apply kpatch kernel patches".where:
- <compute_node>
- Specifies the name of the Compute node.