6.8. 升级混合超融合节点
如果您在 ComputeHCI 角色等超融合节点外还使用专用计算节点或专用 ceph 节点,请完成以下步骤来升级节点:
流程
查找 stackrc 文件:
$ source ~/stackrc
为 Compute 节点运行 upgrade 命令:
$ openstack overcloud upgrade run --roles Compute If using a custom stack name, pass the name with the --stack option.
- 等待节点升级完成。
为 ComputeHCI 节点运行 upgrade 命令:
$ openstack overcloud upgrade run --roles ComputeHCI If using a custom stack name, pass the name with the --stack option.
- 等待节点升级完成。
为 Ceph Storage 节点运行 upgrade 命令:
$ openstack overcloud upgrade run --roles CephStorage
- 等待 Ceph Storage 节点升级完成。
运行 Ceph Storage upgrade 命令。例如:
$ openstack overcloud ceph-upgrade run \ --templates \ -e /home/stack/templates/overcloud_images.yaml \ -e /usr/share/openstack-tripleo-heat-templates/environments/ceph-ansible/ceph-ansible.yaml \ -e /home/stack/templates/ceph-customization.yaml \ -e <ENVIRONMENT FILE>
包含以下与您的环境相关的选项:
自定义配置环境文件(
-e
)。例如:-
容器镜像位置(
overcloud_images.yaml
)的环境文件。请注意,升级命令可能会显示有关使用--container-registry-file
的警告。您可以忽略这个警告,因为这个选项已弃用,而是使用-e
作为容器镜像环境文件。 -
如果适用,使用
deprecated_cli_options.yaml
将已弃用的 CLI 选项映射到 Heat 参数的环境文件。 -
如果适用,使用
custom_repositories_script.yaml
的自定义存储库脚本环境文件。 - Ceph Storage 节点的相关环境文件。
- 任何与您环境相关的额外环境文件。
-
容器镜像位置(
-
如果使用自定义堆栈名称,请使用
--stack
选项传递名称。 -
如果适用,您的自定义角色(
roles_data
)文件使用--roles-file
。 - 以下 ansible playbook:
-
/usr/share/ceph-ansible/infrastructure-playbooks/switch-from-non-containerized-containerized-ceph-daemons.yml
-
/usr/share/ceph-ansible/infrastructure-playbooks/rolling_update.yml
- 等待 Ceph Storage 节点升级完成。
在这个阶段:
- 所有节点已升级至 OpenStack Platform 13,工作负载仍在运行
虽然环境现已升级,但您必须执行一个最后一步才能完成升级。