이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 11. Upgrading the overcloud
Upgrade Red Hat OpenStack Platform content across the whole overcloud on each stack in your environment.
11.1. Upgrading RHOSP on all nodes in each stack 링크 복사링크가 클립보드에 복사되었습니다!
Upgrade all overcloud nodes to Red Hat OpenStack Platform (RHOSP) 17.1 for each stack, starting with the main stack.
You must ensure that the pacemaker is running on all controllers before you upgrade the overcloud nodes.
For information about the duration and impact of this upgrade procedure, see Upgrade duration and impact.
Procedure
-
Log in to the undercloud host as the
stackuser. Source the
stackrcundercloud credentials file:source ~/stackrc
$ source ~/stackrcCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you do not have a DCN or multi-cell deployment that includes ML2/OVN, upgrade RHOSP on all nodes in your main stack:
openstack overcloud upgrade run --yes --stack <stack> --debug --limit allovercloud,undercloud --playbook all
$ openstack overcloud upgrade run --yes --stack <stack> --debug --limit allovercloud,undercloud --playbook allCopy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantDo not modify the
--limitoption. You must upgrade all nodes in the stack at once to avoid workload disruption. For more information about the importance of upgrading all of your overcloud nodes at the same time, see The importance of upgrading Red Hat OpenStack Platform on all overcloud nodes at once.Replace
<stack>with the name of the overcloud stack that you want to upgrade the nodes on.Repeat this step for each stack in your RHOSP deployment.
If you have a DCN or multi-cell deployment that includes ML2/OVN, upgrade the OVN containers and all host packages on each stack. For both DCN and multi-cell deployments, you must upgrade the central stack and control stack first, respectively:
openstack overcloud upgrade run --stack <stack> --tags setup_packages,ovn --limit allovercloud --yes
$ openstack overcloud upgrade run --stack <stack> --tags setup_packages,ovn --limit allovercloud --yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Replace
<stack>with the name of the stack you are upgrading.
-
Replace
After you run the RHOSP upgrade on the central or control stack, the OVN DBs are migrated from a Pacemaker deployment to an Ansible-controlled cluster. As a result, the endpoint that the OVN controllers connect to changes. This connection is updated during the RHOSP upgrade on each additional stack. Depending on the size of your environment, some stacks might be updated later, which can result in a data plane outage. To avoid this issue, update the connection to use the previous endpoint and new endpoint at the same time. The following example shows the workaround for a multi-cell environment. The workaround is the same for DCN environments that include OVN. Ensure that you export the overcloud-export.yaml file first:
ansible-playbook -i overcloud-deploy/$CELLSTACK/tripleo-ansible-inventory.yaml -e @~/overcloud-deploy/overcloud/overcloud-export.yaml -e ovn_compute_role=Compute ovn_workaround.yaml
$ ansible-playbook -i overcloud-deploy/$CELLSTACK/tripleo-ansible-inventory.yaml -e @~/overcloud-deploy/overcloud/overcloud-export.yaml -e ovn_compute_role=Compute ovn_workaround.yaml
Verify that the
ovn-controlleris updated on all overcloud nodes:sudo podman ps | grep ovn_controller
$ sudo podman ps | grep ovn_controllerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Sample output
5ddc21ef9056 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp17-openstack-ovn-controller:17.1_20230905.1 kolla_start 20 hours ago Up 20 hours (healthy) ovn_controller
5ddc21ef9056 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp17-openstack-ovn-controller:17.1_20230905.1 kolla_start 20 hours ago Up 20 hours (healthy) ovn_controllerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Upgrade the service containers and update the host packages on each stack, starting with the central stack or control stack:
openstack overcloud upgrade run --stack <stack> --skip-tags ovn --limit allovercloud --yes
$ openstack overcloud upgrade run --stack <stack> --skip-tags ovn --limit allovercloud --yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteTo avoid a long maintenance window, you can run the upgrade only on the
CellControllerrole in your cell stack first, and then run the upgrade on all the nodes in the cell stack in the next maintenance window. For example:First maintenance window:
openstack overcloud upgrade run --stack AZ2 --skip-tags ovn --limit CellController --yes
$ openstack overcloud upgrade run --stack AZ2 --skip-tags ovn --limit CellController --yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Second maintenance window:
openstack overcloud upgrade run --stack AZ2 --skip-tags ovn --limit allovercloud --yes
$ openstack overcloud upgrade run --stack AZ2 --skip-tags ovn --limit allovercloud --yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow