Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 2. Preparing for a minor update
You must follow some preparation steps on the undercloud and overcloud before you begin the process to update Red Hat OpenStack Platform 16.1 to the latest minor release.
2.1. Locking the environment to a Red Hat Enterprise Linux release Link kopierenLink in die Zwischenablage kopiert!
Red Hat OpenStack Platform 16.1 is supported on Red Hat Enterprise Linux 8.2. Prior to performing the update, lock the undercloud and overcloud repositories to the Red Hat Enterprise Linux 8.2 release to avoid upgrading the operating system to a newer minor release.
Procedure
-
Log in to the undercloud as the
stackuser. Source the
stackrcfile:source ~/stackrc
$ source ~/stackrcCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit your overcloud subscription management environment file, which is the file that contains the
RhsmVarsparameter. The default name for this file is usuallyrhsm.yml. Check your subscription management configuration for the
rhsm_releaseparameter. If this parameter is not set, add this parameter and set the parameter to 8.2:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the overcloud subscription management environment file.
Create a static inventory file of your overcloud:
tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yaml
$ tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you use an overcloud name different to the default overcloud name of
overcloud, set the name of your overcloud with the--planoption.Create a playbook that contains a task to lock the operating system version to Red Hat Enterprise Linux 8.2 on all nodes:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
set_release.yamlplaybook:ansible-playbook -i ~/inventory.yaml -f 25 ~/set_release.yaml --limit <undercloud>,<Controller>,<Compute>
$ ansible-playbook -i ~/inventory.yaml -f 25 ~/set_release.yaml --limit <undercloud>,<Controller>,<Compute>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Use the
--limitoption to apply the content to all RHOSP nodes. Replace<undercloud>,<Controller>,<Compute>with the Ansible groups in your environment that contain those nodes. - You cannot run this playbook against Ceph Storage nodes if you are using a different subscription for these nodes.
-
Use the
To manually lock a node to a version, log in to the node and run the subscription-manager release command:
sudo subscription-manager release --set=8.2
$ sudo subscription-manager release --set=8.2
2.2. Changing from EUS repositories to TUS repositories Link kopierenLink in die Zwischenablage kopiert!
Your Red Hat OpenStack Platform subscription includes repositories for Red Hat Enterprise Linux 8.2 Extended Update Support (EUS). After April 30, 2022, you must enable the RHEL 8.2 Telecommunications Update Service (TUS) repositories for Maintenance Support. The TUS repositories include the latest security patches and bug fixes for Red Hat Enterprise Linux 8.2. Switch to the following repositories before performing an update.
| EUS Repository | TUS Repository |
|---|---|
| rhel-8-for-x86_64-baseos-eus-rpms | rhel-8-for-x86_64-baseos-tus-rpms |
| rhel-8-for-x86_64-appstream-eus-rpms | rhel-8-for-x86_64-appstream-tus-rpms |
| rhel-8-for-x86_64-highavailability-eus-rpms | rhel-8-for-x86_64-highavailability-tus-rpms |
You must use TUS repositories to retain compatibility with a specific version of Podman. Later versions of Podman are untested for the Red Hat Open Stack Platform 16.1 release and can cause unexpected results.
Prerequisites
- RHOSP 16.1 EUS subscription
Procedure
-
Log in to the undercloud as the
stackuser. Source the
stackrcfile:source ~/stackrc
$ source ~/stackrcCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit your overcloud subscription management environment file, which is the file that contains the
RhsmVarsparameter. The default name for this file is usuallyrhsm.yml. Check the
rhsm_reposparameter in your subscription management configuration. If this parameter does not include the TUS repositories, change the relevant repositories to the TUS versions:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the overcloud subscription management environment file.
Create a static inventory file of your overcloud:
tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yaml
$ tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you use an overcloud name that is different from the default overcloud name of
overcloud, set the name of your overcloud by using the--planoption.Create a playbook that contains a task to set the repositories to Red Hat Enterprise Linux 8.2 TUS on all nodes:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
change_tus.yamlplaybook:ansible-playbook -i ~/inventory.yaml -f 25 ~/change_tus.yaml --limit <undercloud>,<Controller>,<Compute>
$ ansible-playbook -i ~/inventory.yaml -f 25 ~/change_tus.yaml --limit <undercloud>,<Controller>,<Compute>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Use the
--limitoption to apply the content to all RHOSP nodes. Replace<undercloud>,<Controller>,<Compute>with the Ansible groups in your environment that contain those nodes. - You cannot run this playbook against Ceph Storage nodes if you are using a different subscription for these nodes.
-
Use the
2.3. Updating Red Hat Openstack Platform and Ansible repositories Link kopierenLink in die Zwischenablage kopiert!
Update your repositories to use Red Hat OpenStack Platform 16.1 and Ansible 2.9 packages.
Procedure
-
Log in to the undercloud as the
stackuser. Source the
stackrcfile:source ~/stackrc
$ source ~/stackrcCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit your overcloud subscription management environment file, which is the file that contains the
RhsmVarsparameter. The default name for this file is usuallyrhsm.yml. Check the
rhsm_reposparameter in your subscription management configuration. If therhsm_reposparameter is using the Red Hat OpenStack Platform 16.0 and Ansible 2.8 repositories, change the repository to the correct versions:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Save the overcloud subscription management environment file.
Create a static inventory file of your overcloud:
tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yaml
$ tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you use an overcloud name that is different from the default overcloud name of
overcloud, set the name of your overcloud by using the--planoption.Create a playbook that contains a task to set the repositories to Red Hat OpenStack Platform 16.1 on all nodes:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
update_rhosp_repos.yamlplaybook:ansible-playbook -i ~/inventory.yaml -f 25 ~/update_rhosp_repos.yaml --limit <undercloud>,<Controller>,<Compute>
$ ansible-playbook -i ~/inventory.yaml -f 25 ~/update_rhosp_repos.yaml --limit <undercloud>,<Controller>,<Compute>Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Use the
--limitoption to apply the content to all RHOSP nodes. Replace<undercloud>,<Controller>,<Compute>with the Ansible groups in your environment that contain those nodes. - You cannot run this playbook against Ceph Storage nodes if you are using a different subscription for these nodes.
-
Use the
Create a playbook that contains a task to set the repositories to Red Hat OpenStack Platform 16.1 on all nodes:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
update_ceph_repos.yamlplaybook:ansible-playbook -i ~/inventory.yaml -f 25 ~/update_ceph_repos.yaml --limit CephStorage
$ ansible-playbook -i ~/inventory.yaml -f 25 ~/update_ceph_repos.yaml --limit CephStorageCopy to Clipboard Copied! Toggle word wrap Toggle overflow Use the
--limitoption to apply the content to Ceph Storage nodes.
2.4. Setting the container-tools version Link kopierenLink in die Zwischenablage kopiert!
Set the container-tools module to version 2.0 to ensure you use the correct package versions on all nodes.
Procedure
-
Log in to the undercloud as the
stackuser. Source the
stackrcfile:source ~/stackrc
$ source ~/stackrcCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a static inventory file of your overcloud:
tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yaml
$ tripleo-ansible-inventory --ansible_ssh_user heat-admin --static-yaml-inventory ~/inventory.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you use an overcloud name different to the default overcloud name of
overcloud, set the name of your overcloud with the--planoption.Create a playbook that contains a task to set the
container-toolsmodule to version2.0on all nodes:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
container-tools.yamlplaybook against all nodes:ansible-playbook -i ~/inventory.yaml -f 25 ~/container-tools.yaml
$ ansible-playbook -i ~/inventory.yaml -f 25 ~/container-tools.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.5. Updating your container image preparation file Link kopierenLink in die Zwischenablage kopiert!
Your container preparation file is the file that contains the ContainerImagePrepare parameter. You use this file to define the rules for obtaining container images for the undercloud and overcloud. Before you update your environment, check the file to ensure you obtain the correct image versions.
Procedure
-
Edit the container preparation file. The default name for this file is usually
containers-prepare-parameter.yaml. Check the
tagparameter is set to16.1for each rule set:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
If you do not want to use a specific tag for the update, such as 16.1 or 16.1.2, remove the tag key-value pair and specify tag_from_label only. This will use the installed Red Hat OpenStack Platform version when determining the value for the tag to use as part of the update process.
- Save this file.
2.6. Updating your SSL/TLS configuration Link kopierenLink in die Zwischenablage kopiert!
Remove the NodeTLSData resource from the resource_registry to update your SSL/TLS configuration.
Procedure
-
Log in to the undercloud as the
stackuser. Source the
stackrcfile:source ~/stackrc
$ source ~/stackrcCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit your custom overcloud SSL/TLS public endpoint file, which is usually named
~/templates/enable-tls.yaml. Remove the
NodeTLSDataresource from the `resource_registry:resource_registry: OS::TripleO::NodeTLSData: /usr/share/openstack-tripleo-heat-templates/puppet/extraconfig/tls/tls-cert-inject.yaml …
resource_registry: OS::TripleO::NodeTLSData: /usr/share/openstack-tripleo-heat-templates/puppet/extraconfig/tls/tls-cert-inject.yaml …Copy to Clipboard Copied! Toggle word wrap Toggle overflow The overcloud deployment uses a new service in HAProxy to determine if SSL/TLS is enabled.
NoteIf this is the only resource in the
resource_registrysection of theenable-tls.yamlfile, remove the completeresource_registrysection.- Save the SSL/TLS public endpoint file file.
2.7. Disabling fencing in the overcloud Link kopierenLink in die Zwischenablage kopiert!
Before you update the overcloud, ensure that fencing is disabled.
If fencing is deployed in your environment during the Controller nodes update process, the overcloud might detect certain nodes as disabled and attempt fencing operations, which can cause unintended results.
If you have enabled fencing in the overcloud, you must temporarily disable fencing for the duration of the update to avoid any unintended results.
Procedure
-
Log in to the undercloud as the
stackuser. Source the
stackrcfile.source ~/stackrc
$ source ~/stackrcCopy to Clipboard Copied! Toggle word wrap Toggle overflow Log in to a Controller node and run the Pacemaker command to disable fencing:
ssh heat-admin@CONTROLLER_IP "sudo pcs property set stonith-enabled=false"
$ ssh heat-admin@CONTROLLER_IP "sudo pcs property set stonith-enabled=false"Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
In the
fencing.yamlenvironment file, set theEnableFencingparameter tofalseto ensure that fencing stays disabled during the update process.
Additional Resources