第 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
这个错误会在 Controller 节点的 Leapp 升级过程中出现问题。要更正此问题,请更正错误并运行 openstack overcloud upgrade prepare
命令。
流程
更正文件中的错误:
parameter_defaults: UpgradeLeappEnabled: true UpgradeLeappCommandOptions: "--enablerepo rhel-8-for-x86_64-baseos-tus-rpms --enablerepo rhel-8-for-x86_64-appstream-tus-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-tus-rpms --enablerepo rhel-8-for-x86_64-appstream-tus-rpms --enablerepo fast-datapath-for-rhel-8-x86_64-rpms" CephAnsibleRepo: rhceph-4-tools-for-rhel-8-x86_64-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用更正的文件运行 upgrade preparation 命令:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 等待 overcloud 堆栈更新完成。
- 继续失败的升级操作步骤。