2.3. 更新配置代理


重要

只有在从 Red Hat OpenStack Platform 8.0 初始发行版本更新时才需要本节。如果在以前的更新中执行这个步骤,您可以忽略它。

由于一个已知问题(请参阅 BZmtc78181),Overcloud 需要一些手动配置其配置代理。这涉及将新版本的配置代理脚本从 director 复制到 Overcloud 中的每个节点。

stack 用户身份登录 director 主机,再提供 Undercloud 配置:

$ source ~/stackrc
Copy to Clipboard Toggle word wrap

将配置代理(55-heat-config)复制到每个 Overcloud 节点。使用以下命令对所有主机执行此操作:

$ for i in $(nova list | awk '/Running/ {print $(NF-1)}' | awk -F"=" '{print $NF}' ) ; do echo $i ; scp -o StrictHostKeyChecking=no /usr/share/openstack-heat-templates/software-config/elements/heat-config/os-refresh-config/configure.d/55-heat-config heat-admin@${i}: ; ssh -o StrictHostKeyChecking=no heat-admin@${i} 'sudo /bin/bash -c "cp /home/heat-admin/55-heat-config /usr/libexec/os-refresh-config/configure.d/55-heat-config"' ; done
Copy to Clipboard Toggle word wrap

这样可确保配置代理为最新版本。

此 Overcloud 还需要重新创建一些部署后文件。director 包含一个可以实现此目的的脚本。在每个节点上复制并执行 heat-config-rebuild-deployed 脚本。使用以下命令为所有节点执行此操作:

$ for i in $(nova list | awk '/Running/ {print $(NF-1)}' | awk -F"=" '{print $NF}') ; do echo $i ; scp  -o StrictHostKeyChecking=no /usr/share/openstack-heat-templates/software-config/elements/heat-config/bin/heat-config-rebuild-deployed heat-admin@${i}: ; ssh -o StrictHostKeyChecking=no heat-admin@${i} 'sudo /bin/bash -c "mkdir -p /usr/share/openstack-heat-templates/software-config/elements/heat-config/bin ; cp heat-config-rebuild-deployed /usr/share/openstack-heat-templates/software-config/elements/heat-config/bin/heat-config-rebuild-deployed ; chmod +x /usr/share/openstack-heat-templates/software-config/elements/heat-config/bin/heat-config-rebuild-deployed ; /usr/share/openstack-heat-templates/software-config/elements/heat-config/bin/heat-config-rebuild-deployed"' ; done
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat