Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

10.3. 更新 Overcloud 镜像

重要

在执行以下操作前,请阅读 第 10.1 节 “升级前需要注意的信息” 中的信息。
这个过程可以确保您有最新的镜像来进行节点发现和 Overcloud 部署。通过 rhosp-director-imagesrhosp-director-images-ipa 软件包来获得这些新镜像:
$ sudo yum install rhosp-director-images rhosp-director-images-ipa
stack 用户的主目录的 images 目录中(/home/stack/images)删除存在的镜像,然后拷入新的镜像:
$ rm -rf ~/images/*
$ cp /usr/share/rhosp-director-images/overcloud-full-latest-8.0.tar ~/images/.
$ cp /usr/share/rhosp-director-images/ironic-python-agent-latest-8.0.tar ~/images/.
展开这些文件:
$ cd ~/images
$ for tarfile in *.tar; do tar -xf $tarfile; done
把最新镜像输入到 director,并配置节点来使用新镜像
$ openstack overcloud image upload --update-existing --image-path ~/images/.
$ openstack baremetal configure boot
在完成镜像更新前,检查新镜像是否存在:
$ openstack image list
$ ls -l /httpboot
director 现在被更新为使用最新的镜像。