bifrost: Populate bifrost host vars on deprovision

Closes-Bug: #2038889
Change-Id: I4609494d009c6e1f97d833a9a11529d107b3216f
This commit is contained in:
Michal Nasiadka 2023-10-10 08:03:47 +02:00
parent 65e8f09e23
commit 672d6fa24a
3 changed files with 11 additions and 1 deletions

View File

@ -1087,7 +1087,8 @@ class OvercloudDeprovision(KayobeAnsibleMixin, VaultMixin, Command):
def take_action(self, parsed_args):
self.app.LOG.debug("Deprovisioning overcloud")
playbooks = _build_playbook_list("overcloud-deprovision")
playbooks = _build_playbook_list("kolla-bifrost-hostvars",
"overcloud-deprovision")
self.run_kayobe_playbooks(parsed_args, playbooks)

View File

@ -1184,6 +1184,8 @@ class TestCase(unittest.TestCase):
mock.call(
mock.ANY,
[
utils.get_data_files_path(
"ansible", "kolla-bifrost-hostvars.yml"),
utils.get_data_files_path(
"ansible", "overcloud-deprovision.yml"),
],

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes failure to run ``kayobe overcloud deprovision`` after Bifrost is
redeployed.
`LP#2038889 <https://bugs.launchpad.net/kolla-ansible/+bug/2038889>`__