[fuel-upgrade-system] HostSystemUpgrader is not idempotent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Bulat Gaifullin | ||
7.0.x |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
steps to reproduce:
1. deploy the product of version 6.1
2. download 7.0 upgrade tarball
3. extract upgrade files from tarball
4. start upgrader. upgrader.sh
5. upgrader completed successfully.
6. start upgrader.sh again or manually start host-system upgrade.
upgrade/
expected result:
host system upgrader completed successfully.
actual result:
host system upgrade failed with error
File "/root/
run_
File "/root/
upgrade_
File "/root/
upgrader.
File "/root/
self.
File "/root/
utils.
File "/root/
_wait_
File "/root/
'exit code: {1} '.format(exit_code, cmd))
ExecutedErrorNo
in case if start host-upgrader again it completes successfully.
the root cause in the following:
during upgrade the puppet installs the repo auxiliary /etc/yum.
in case if starts host-upgrader again:
it removes the repository folder, but keeps repository config file, that contain reference to non-existent repository.
Changed in fuel: | |
milestone: | none → 8.0 |
assignee: | nobody → Fuel Python Team (fuel-python) |
tags: | added: on-verification |
tags: | removed: on-verification |
tags: | added: on-verification |
tags: | removed: on-verification |
tags: | added: on-verification |
tags: | added: area-python |
I suggest to ensure that file /etc/yum. repos.d/ <version> _auxiliary. rep does not exists before starts host-system upgrade. unavailable= 1 for repository.
or set option skip_if_