15.2. Upgrading the overcloud images
You must replace your current overcloud images with new versions. The new images ensure that director can introspect and provision your nodes using the latest version of Red Hat OpenStack Platform (RHOSP) software.
Prerequisites
- You have upgraded the undercloud to the latest version.
You must use the new version of the overcloud images if you redeploy your overcloud. For more information on installing overcloud images, see Installing the overcloud images in Installing and managing Red Hat OpenStack Platform with director.
Procedure
Check the list of RPMs that you installed and ensure that there are no RHOSP 16.2 or legacy 17.1 images, for example,
rhosp-director-images-x86_64-17.1:$ rpm -qa | egrep "rhosp-director-images-*-16.2|rhosp-director-images-x86_64-17.1"If the list displays these images, remove them by running the following command:
$ sudo dnf -y remove rhosp-director-images-*-16.2 rhosp-director-images-x86_64-17.1Remove any existing images from the
imagesdirectory on thestackuser’s home (/home/stack/images):$ rm -rf ~/images/*Extract the archives:
$ cd ~/images $ for i in /usr/share/rhosp-director-images/overcloud-hardened-uefi-full.tar /usr/share/rhosp-director-images/ironic-python-agent-latest-17.1.tar; do tar -xvf $i; done $ cd ~Import the images into director:
(undercloud) [stack@director images]$ openstack overcloud image upload --image-path /home/stack/images/ --update-existingThe command completes the following tasks:
- Converts the image format from QCOW to RAW.
- Provides status updates about the upload of the image.