From f27755aeb2f1bd5a7bae1deabc0df37a6578dc24 Mon Sep 17 00:00:00 2001 From: Matt Crees Date: Fri, 13 Dec 2024 11:18:12 +0000 Subject: [PATCH] Fix overcloud deprovision hosts list in prompt Hosts that weren't part of the overcloud group would be included in the list when this is run without a limit. Closes-Bug: #2091621 Change-Id: Id3d68b55e18dfe9c44805b6e2602e00eadecc76a --- ansible/overcloud-deprovision.yml | 2 +- ...loud-deprovision-prompt-host-lists-cfb701162c114c60.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/fix-overcloud-deprovision-prompt-host-lists-cfb701162c114c60.yaml diff --git a/ansible/overcloud-deprovision.yml b/ansible/overcloud-deprovision.yml index a8bcf8b46..642042404 100644 --- a/ansible/overcloud-deprovision.yml +++ b/ansible/overcloud-deprovision.yml @@ -37,7 +37,7 @@ - name: confirm_deprovision prompt: | The following hosts will be deprovisioned: - {{ play_hosts | join(', ') }} + {{ play_hosts | intersect(groups['overcloud'] | default([])) | join(', ') }} If you want to proceed type: yes default: "no" private: false diff --git a/releasenotes/notes/fix-overcloud-deprovision-prompt-host-lists-cfb701162c114c60.yaml b/releasenotes/notes/fix-overcloud-deprovision-prompt-host-lists-cfb701162c114c60.yaml new file mode 100644 index 000000000..b2571fa9b --- /dev/null +++ b/releasenotes/notes/fix-overcloud-deprovision-prompt-host-lists-cfb701162c114c60.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes a bug where non-overcloud hosts would show up in the confirmation + prompt for `kayobe overcloud deprovision` + `LP#2091703 `__