이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 2. Preparing for a minor update
You must follow some preparation steps on the undercloud and overcoud before you begin the process to update Red Hat OpenStack Platform 16.0 to the latest minor release.
2.1. Locking the environment to a Red Hat Enterprise Linux release 링크 복사링크가 클립보드에 복사되었습니다!
Red Hat OpenStack Platform 16.0 is supported on Red Hat Enterprise Linux 8.1. Prior to performing the update, lock the undercloud and overcloud repositories to the Red Hat Enterprise Linux 8.1 release to avoid upgrading the operating system to a newer minor release.
Procedure
-
Log into 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 lock the operating system version to Red Hat Enterprise Linux 8.1 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
$ ansible-playbook -i ~/inventory.yaml -f 25 ~/set_release.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
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.1
$ sudo subscription-manager release --set=8.1
2.2. Changing to Extended Update Support (EUS) repositories 링크 복사링크가 클립보드에 복사되었습니다!
Your Red Hat OpenStack Platform subscription includes repositories for Red Hat Enterprise Linux 8.1 Extended Update Support (EUS). The EUS repositories include the latest security patches and bug fixes for Red Hat Enterprise Linux 8.1. Switch to the following repositories before performing a minor version update.
| Standard Repository | EUS Resporitory |
|---|---|
| rhel-8-for-x86_64-baseos-rpms | rhel-8-for-x86_64-baseos-eus-rpms |
| rhel-8-for-x86_64-appstream-rpms | rhel-8-for-x86_64-appstream-eus-rpms |
| rhel-8-for-x86_64-highavailability-rpms | rhel-8-for-x86_64-highavailability-eus-rpms |
Procedure
-
Log into 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 EUS repositories, change the relevant repositories to the EUS 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 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 repositories to Red Hat Enterprise Linux 8.1 EUS on all nodes:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
change_eus.yamlplaybook:ansible-playbook -i ~/inventory.yaml -f 25 ~/change_eus.yaml
$ ansible-playbook -i ~/inventory.yaml -f 25 ~/change_eus.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow