第 2 章 升级 undercloud
将 undercloud 升级到 Red Hat OpenStack Platform 17.1。undercloud 升级使用正在运行的 Red Hat OpenStack Platform 16.2 undercloud。升级过程将 heat 堆栈导出到文件,并在升级节点上其余的服务时将 heat 转换为临时 heat。
2.1. 为 undercloud 启用软件仓库
启用 undercloud 所需的软件仓库,并将系统软件包更新至最新版本。
步骤
-
以
stack
用户身份登录 undercloud。 禁用所有默认软件仓库,并启用所需的 Red Hat Enterprise Linux (RHEL)软件仓库:
[stack@director ~]$ sudo subscription-manager repos --disable=* [stack@director ~]$ sudo subscription-manager repos \ --enable=rhel-8-for-x86_64-baseos-tus-rpms \ --enable=rhel-8-for-x86_64-appstream-tus-rpms \ --enable=rhel-8-for-x86_64-highavailability-tus-rpms \ --enable=openstack-17.1-for-rhel-8-x86_64-rpms \ --enable=fast-datapath-for-rhel-8-x86_64-rpms
在所有节点上将
container-tools
模块版本切换到 RHEL 8:[stack@director ~]$ sudo dnf -y module switch-to container-tools:rhel8
安装用于安装和配置 director 的命令行工具:
[stack@director ~]$ sudo dnf install -y python3-tripleoclient