第 26 章 升级问题的故障排除
如果您在升级过程中遇到任何问题,请参考本节的建议。
26.1. 修正环境文件 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
如果有任何自定义环境文件中的参数错误,您可以更正环境文件并在升级期间随时运行 openstack overcloud upgrade prepare 命令。此命令将把 overcloud 计划的新版本上传到 director,这将生成一组新的 config-download playbook。
本例在 upgrade -environment.yaml 文件中包含错误的存储库名称:
parameter_defaults: UpgradeLeappEnabled: true UpgradeLeappCommandOptions: "--enablerepo rhel-7-for-x86_64-baseos-eus-rpms --enablerepo rhel-8-for-x86_64-appstream-eus-rpms --enablerepo fast-datapath-for-rhel-8-x86_64-rpms" CephAnsibleRepo: rhceph-4-tools-for-rhel-8-x86_64-rpms
parameter_defaults:
UpgradeLeappEnabled: true
UpgradeLeappCommandOptions: "--enablerepo rhel-7-for-x86_64-baseos-eus-rpms --enablerepo rhel-8-for-x86_64-appstream-eus-rpms --enablerepo fast-datapath-for-rhel-8-x86_64-rpms"
CephAnsibleRepo: rhceph-4-tools-for-rhel-8-x86_64-rpms
这个错误会在 Leapp 升级过程中为 Controller 节点造成问题。要更正此问题,请更正错误并运行 openstack overcloud upgrade prepare 命令。
流程
更正文件中的错误:
parameter_defaults: UpgradeLeappEnabled: true UpgradeLeappCommandOptions: "--enablerepo rhel-8-for-x86_64-baseos-eus-rpms --enablerepo rhel-8-for-x86_64-appstream-eus-rpms --enablerepo fast-datapath-for-rhel-8-x86_64-rpms" CephAnsibleRepo: rhceph-4-tools-for-rhel-8-x86_64-rpms
parameter_defaults: UpgradeLeappEnabled: true UpgradeLeappCommandOptions: "--enablerepo rhel-8-for-x86_64-baseos-eus-rpms --enablerepo rhel-8-for-x86_64-appstream-eus-rpms --enablerepo fast-datapath-for-rhel-8-x86_64-rpms" CephAnsibleRepo: rhceph-4-tools-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 使用更正的文件运行升级准备命令:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 等待 overcloud 栈更新完成。
- 继续失败的升级操作步骤。