Skip to content

Commit

Permalink
bifrost: Populate bifrost host vars on deprovision
Browse files Browse the repository at this point in the history
Closes-Bug: #2038889
Change-Id: I4609494d009c6e1f97d833a9a11529d107b3216f
(cherry picked from commit 672d6fa)
  • Loading branch information
mnasiadka committed Oct 17, 2023
1 parent c4a6883 commit a1a1f8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kayobe/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,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)


Expand Down
2 changes: 2 additions & 0 deletions kayobe/tests/unit/cli/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,8 @@ def test_overcloud_deprovision(self, mock_run):
mock.call(
mock.ANY,
[
utils.get_data_files_path(
"ansible", "kolla-bifrost-hostvars.yml"),
utils.get_data_files_path(
"ansible", "overcloud-deprovision.yml"),
],
Expand Down
Original file line number Diff line number Diff line change
@@ -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>`__

0 comments on commit a1a1f8d

Please sign in to comment.