Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Does not Properly Check Ocata Status #383

Open
seancarlisle opened this issue Apr 25, 2020 · 0 comments
Open

Script Does not Properly Check Ocata Status #383

seancarlisle opened this issue Apr 25, 2020 · 0 comments

Comments

@seancarlisle
Copy link

If the upgrade script fails after executing prepare-ocata-upgrade.yml or the db migrations, but before the upgrade to Ocata is marked complete, the script will never be able to progress forward due to inventory changes and bad conditional checks.

The prepare-ocata-upgrade.yml playbook touches the file /etc/openstack_deploy/rpc-upgrades/ocata_upgrade_prep.complete, but the conditional check in incremental/lib/functions.sh searches for the file /etc/openstack_deploy/ocata_upgrade_prep.complete, which will never exist.

https://github.com/rcbops/rpc-upgrades/blob/master/incremental/playbooks/prepare-ocata-upgrade.yml#L111-L115

https://github.com/rcbops/rpc-upgrades/blob/master/incremental/lib/functions.sh#L283-L285

Consequently, if the upgrade script fails before Ocata is marked complete, this step will always be executed and will fail because it will try to access the nova_placement_api containers before they are created.

The db-migration-ocata.yml playbook touches the file /etc/openstack_deploy/rpc-upgrades/ocata_migrate.complete, but the conditional check in incremental/lib/functions.sh searches for the file /etc/openstack_deploy/ocata_migrate.complete, which will never exist.

https://github.com/rcbops/rpc-upgrades/blob/master/incremental/playbooks/db-migration-ocata.yml#L156-L164

https://github.com/rcbops/rpc-upgrades/blob/master/incremental/lib/functions.sh#L287-L290

Consequently, if the playbooks fail here, before Ocata is marked complete, the prepare-ocata-upgrade.yml will always be re-ran and will fail for the reason mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant