14.2. Upgrading all Compute nodes to RHEL 9.2
Upgrade all your Compute nodes to RHEL 9.2 to take advantage of the latest features and to reduce downtime.
Prerequisites
- If your deployment includes hyper-converged infrastructure (HCI) nodes, place hosts in maintenance mode to prepare the Red Hat Ceph Storage cluster on each HCI node for reboot. For more information, see Placing hosts in the maintenance mode using the Ceph Orchestrator in The Ceph Operations Guide.
If you are using RHOSP version 17.1.3 or earlier, before you run the system upgrade, ensure that no guests are running on the Compute hosts. Any guests that are running go into an error state. To avoid this issue, either live migrate your workloads or shut them down. For more information about live migration, see Live migrating an instance in Configuring the Compute service for instance creation.
Procedure
-
Log in to the undercloud host as the
stackuser. Source the
stackrcundercloud credentials file:$ source ~/stackrcIn the
container-image-prepare.yamlfile, ensure that only the tags specified in theContainerImagePrepareparameter are included, and theMultiRhelRoleContainerImagePrepareparameter is removed. For example:parameter_defaults: ContainerImagePrepare: - tag_from_label: "{version}-{release}" set: namespace: name_prefix: name_suffix: tag: rhel_containers: false neutron_driver: ovn ceph_namespace: ceph_image: ceph_tag:-
In the
roles_data.yamlfile, replace theOS::TripleO::Services::NovaLibvirtLegacyservice with theOS::TripleO::Services::NovaLibvirtservice that is required for RHEL 9.2. Include the
-esystem_upgrade.yamlargument and the other required-eenvironment file arguments in theovercloud_upgrade_prepare.shscript as shown in the following example:$ openstack overcloud upgrade prepare --yes … -e /home/stack/system_upgrade.yaml …-
Run the
overcloud_upgrade_prepare.shscript. Upgrade the operating system on the Compute nodes to RHEL 9.2. Use the
--limitoption with a comma-separated list of nodes that you want to upgrade. The following example upgrades thecompute-0,compute-1, andcompute-2nodes.$ openstack overcloud upgrade run --yes --tags system_upgrade --stack <stack> --limit compute-0,compute-1,compute-2-
Replace
<stack>with the name of your stack.
-
Replace
Upgrade the containers on the Compute nodes to RHEL 9.2. Use the
--limitoption with a comma-separated list of nodes that you want to upgrade. The following example upgrades thecompute-0,compute-1, andcompute-2nodes.$ openstack overcloud upgrade run --yes --stack <stack> --limit compute-0,compute-1,compute-2