Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. Upgrading the Undercloud
This process upgrades the undercloud and its overcloud images to Red Hat OpenStack Platform 12.
3.1. Upgrading the Undercloud Node Copia collegamentoCollegamento copiato negli appunti!
You need to upgrade the undercloud before upgrading the overcloud. This procedure upgrades the undercloud toolset and the core Heat template collection.
This process causes a short period of downtime for the undercloud. The overcloud is still functional during the undercloud upgrade.
Prerequisites
- You have read the upgrade support statement.
- You have updated to the latest minor version of your undercloud version.
Procedure
-
Log into the director as the
stack
user. Disable the current OpenStack Platform repository:
sudo subscription-manager repos --disable=rhel-7-server-openstack-11-rpms
$ sudo subscription-manager repos --disable=rhel-7-server-openstack-11-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the new OpenStack Platform repository:
sudo subscription-manager repos --enable=rhel-7-server-openstack-12-rpms
$ sudo subscription-manager repos --enable=rhel-7-server-openstack-12-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run
yum
to upgrade the director’s main packages:sudo yum update -y python-tripleoclient
$ sudo yum update -y python-tripleoclient
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Edit the
/home/stack/undercloud.conf
file and check that theenabled_drivers
parameter does not contain thepxe_ssh
driver. This driver is deprecated in favor of the Virtual Bare Metal Controller (VBMC) and removed from Red Hat OpenStack Platform. For information on switchingpxe_ssh
nodes to VBMC, see "Virtual Bare Metal Controller (VBMC)" in the Director Installation and Usage guide. Run the following command to upgrade the undercloud:
openstack undercloud upgrade
$ openstack undercloud upgrade
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This command upgrades the director’s packages, refreshes the director’s configuration, and populates any settings that are unset since the version change. This command does not delete any stored data, such as Overcloud stack data or data for existing nodes in your environment.
Reboot the node:
sudo reboot
$ sudo reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Wait until the node boots.
Check the status of all services:
sudo systemctl list-units "openstack*" "neutron*" "openvswitch*"
$ sudo systemctl list-units "openstack*" "neutron*" "openvswitch*"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIt might take approximately 10 minutes for the
openstack-nova-compute
to become active after a reboot.Verify the existence of your overcloud and its nodes:
source ~/stackrc openstack server list openstack baremetal node list openstack stack list
$ source ~/stackrc $ openstack server list $ openstack baremetal node list $ openstack stack list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Upgrading the Overcloud Images Copia collegamentoCollegamento copiato negli appunti!
You need to replace your current overcloud images with new versions. The new images ensure the director can introspect and provision your nodes using the latest version of OpenStack Platform software.
Prerequisites
- You have upgraded the undercloud to the latest version.
Procedure
Remove any existing images from the
images
directory on thestack
user’s home (/home/stack/images
):rm -rf ~/images/*
$ rm -rf ~/images/*
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Extract the archives:
cd ~/images for i in /usr/share/rhosp-director-images/overcloud-full-latest-12.0.tar /usr/share/rhosp-director-images/ironic-python-agent-latest-12.0.tar; do tar -xvf $i; done cd ~
$ cd ~/images $ for i in /usr/share/rhosp-director-images/overcloud-full-latest-12.0.tar /usr/share/rhosp-director-images/ironic-python-agent-latest-12.0.tar; do tar -xvf $i; done $ cd ~
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Import the latest images into the director:
openstack overcloud image upload --update-existing --image-path /home/stack/images/
$ openstack overcloud image upload --update-existing --image-path /home/stack/images/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure your nodes to use the new images:
openstack overcloud node configure $(openstack baremetal node list -c UUID -f value)
$ openstack overcloud node configure $(openstack baremetal node list -c UUID -f value)
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the existence of the new images:
openstack image list ls -l /httpboot
$ openstack image list $ ls -l /httpboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
When deploying overcloud nodes, ensure the Overcloud image version corresponds to the respective Heat template version. For example, only use the OpenStack Platform 12 images with the OpenStack Platform 12 Heat templates.
3.3. Comparing Previous Template Versions Copia collegamentoCollegamento copiato negli appunti!
The upgrade process installs a new set of core Heat templates that correspond to the latest overcloud version. Red Hat OpenStack Platform’s repository retains the previous version of the core template collection in the openstack-tripleo-heat-templates-compat
package. This procedure shows how to compare these versions so you can identify changes that might affect your overcloud upgrade.
Procedure
Install the
openstack-tripleo-heat-templates-compat
package:sudo yum install openstack-tripleo-heat-templates-compat
$ sudo yum install openstack-tripleo-heat-templates-compat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This installs the previous templates in the
compat
directory of your Heat template collection (/usr/share/openstack-tripleo-heat-templates/compat
) and also creates a link tocompat
named after the previous version (ocata
). These templates are backwards compatible with the upgraded director, which means you can use the latest version of the director to install an overcloud of the previous version.Create a temporary copy of the core Heat templates:
cp -a /usr/share/openstack-tripleo-heat-templates /tmp/osp12
$ cp -a /usr/share/openstack-tripleo-heat-templates /tmp/osp12
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Move the previous version into its own directory:
mv /tmp/osp12/compat /tmp/osp11
$ mv /tmp/osp12/compat /tmp/osp11
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Perform a
diff
on the contents of both directories:diff -urN /tmp/osp11 /tmp/osp12
$ diff -urN /tmp/osp11 /tmp/osp12
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This shows the core template changes from one version to the next. These changes provide an idea of what should occur during the overcloud upgrade.