Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 4. Updating Image Mode (bootc) data plane nodes
This feature is available in this release as a Technology Preview, and therefore is not fully supported by Red Hat. It should only be used for testing, and should not be deployed in a production environment. For more information about Technology Preview features, see Scope of Coverage Details.
The update process for data plane nodes deployed with Image Mode (bootc) images differs from nodes using RPM-based images. Data plane nodes deployed with Image Mode images use a container-based operating system that is updated by switching to a new container image and rebooting the node.
Data plane nodes deployed with Image Mode images are updated using either a single or dual phase process:
- The single phase process updates the system and services simultaneously.
- The dual phase process updates the systems and services separately.
Both update processes require the use of the edpm_update_system_bootc_os_container_image Ansible variable. This variable contains the full URL to the container image to be used to update the node.
For information on configuring your environment to use Image Mode images, see Deploying data plane nodes using Image Mode (bootc) images in Customizing the Red Hat OpenStack Services on OpenShift deployment.
4.1. Updating Image Mode nodes in a single phase Copier lienLien copié sur presse-papiers!
This feature is available in this release as a Technology Preview, and therefore is not fully supported by Red Hat. It should only be used for testing, and should not be deployed in a production environment. For more information about Technology Preview features, see Scope of Coverage Details.
You can update nodes provisioned with Image Mode (bootc) images in a single phase that includes updating the OVN services, data plane services, and the Image Mode image.
Procedure
- Update OVN services as described in Updating OVN services on the data plane.
- Update the remaining data plane services as described in Updating the remaining services on the data plane.
- Build and deploy the updated Image Mode container image as described in Building the Image Mode (bootc) container image in Customizing the Red Hat OpenStack Services on OpenShift deployment.
Create an
OpenStackDataPlaneDeploymentCR to deploy the updated container image. The following is an example configuration:apiVersion: dataplane.openstack.org/v1beta1 kind: OpenStackDataPlaneDeployment metadata: name: edpm-compute-bootc-update spec: nodeSets: - edpm-compute-bootc servicesOverride: - update - reboot ansibleVars: edpm_update_system_bootc_os_container_image: "<container_image_url>"-
Replace
<container_image_url>with the full URL to the updated container image.
-
Replace
-
Save the
OpenStackDataPlaneDeploymentCR file. Apply the
OpenStackDataPlaneDeploymentCR to your environment.$ oc apply -f <deployment_cr_file>-
Replace
<deployment_cr_file>with the name of theOpenStackDataPlaneDeploymentCR file.
-
Replace
- Verify the update completes successfully.
4.2. Updating Image Mode nodes in two phases Copier lienLien copié sur presse-papiers!
This feature is available in this release as a Technology Preview, and therefore is not fully supported by Red Hat. It should only be used for testing, and should not be deployed in a production environment. For more information about Technology Preview features, see Scope of Coverage Details.
You can update nodes provisioned with Image Mode (bootc) images in two phases. The first phase updates service containers and essential packages. The second phase updates the Image Mode image used by the node.
Procedure
-
Verify if a new version of
openstack-selinuxis available in your repositories. If a new version of
openstack-selinuxis available, perform the following tasks:- Build and deploy the updated container image as described in Building the Image Mode (bootc) container image in Customizing the Red Hat OpenStack Services on OpenShift deployment.
Create an
OpenStackDataPlaneDeploymentCR to deploy the updated container image. The following is an example configuration:apiVersion: dataplane.openstack.org/v1beta1 kind: OpenStackDataPlaneDeployment metadata: name: edpm-update-system-selinux spec: nodeSets: - edpm-compute-bootc servicesOverride: - update-system - reboot ansibleVars: edpm_update_system_bootc_os_container_image: "<container_image_url>"-
Replace
<container_image_url>with the full URL to the updated container image.
-
Replace
-
Save the
OpenStackDataPlaneDeploymentCR file. Apply the
OpenStackDataPlaneDeploymentCR to your environment.$ oc apply -f <deployment_cr_file>-
Replace
<deployment_cr_file>with the name of theOpenStackDataPlaneDeploymentCR file.
-
Replace
Create an
OpenStackDataPlaneDeploymentCR to update the data plane services. The following is an example configuration:apiVersion: dataplane.openstack.org/v1beta1 kind: OpenStackDataPlaneDeployment metadata: name: edpm-update-services-bootc spec: nodeSets: - edpm-compute-bootc servicesOverride: - update-services-
Save the
OpenStackDataPlaneDeploymentCR file. Apply the
OpenStackDataPlaneDeploymentCR to your environment.$ oc apply -f <deployment_cr_file>-
Replace
<deployment_cr_file>with the name of theOpenStackDataPlaneDeploymentCR file.
-
Replace
- Build and deploy the updated Image Mode container image as described in Building the Image Mode (bootc) container image in Customizing the Red Hat OpenStack Services on OpenShift deployment.
Create an
OpenStackDataPlaneDeploymentCR to deploy the updated Image Mode container image. The following is an example configuration:apiVersion: dataplane.openstack.org/v1beta1 kind: OpenStackDataPlaneDeployment metadata: name: edpm-update-bootc spec: nodeSets: - edpm-compute-bootc servicesOverride: - update-system - reboot ansibleVars: # Specify the new bootc image to switch to edpm_update_system_bootc_os_container_image: "<container_image_url>"-
Replace
<container_image_url>with the full URL to the updated container image.
-
Replace
-
Save the
OpenStackDataPlaneDeploymentCR file. Apply the
OpenStackDataPlaneDeploymentCR to your environment.$ oc apply -f <deployment_cr_file>-
Replace
<deployment_cr_file>with the name of theOpenStackDataPlaneDeploymentCR file.
-
Replace
- Verify the update completes successfully.