From: Anil Belur Date: Mon, 8 Jul 2019 22:35:40 +0000 (+1000) Subject: Handle stack removal with the force option X-Git-Tag: v0.40.0~21^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=9aa38f3b49cbc2f18ce131fd86d20d0234a411d3;p=releng%2Fglobal-jjb.git Handle stack removal with the force option Issue: RELENG-2058 Change-Id: I7e428c6b3a5dd0c21f10b368cb8e9584d5e77648 Signed-off-by: Anil Belur --- diff --git a/releasenotes/notes/openstack-stack-del-with-force-b50cadbacc49d516.yaml b/releasenotes/notes/openstack-stack-del-with-force-b50cadbacc49d516.yaml new file mode 100644 index 00000000..31a973b1 --- /dev/null +++ b/releasenotes/notes/openstack-stack-del-with-force-b50cadbacc49d516.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Delete stacks with the ``--force`` option to ensure that any delete + failures does not stop the openstack-cron jobs from continuing. diff --git a/shell/openstack-cleanup-orphaned-stacks.sh b/shell/openstack-cleanup-orphaned-stacks.sh index 8140adea..ccc29969 100644 --- a/shell/openstack-cleanup-orphaned-stacks.sh +++ b/shell/openstack-cleanup-orphaned-stacks.sh @@ -87,6 +87,6 @@ for STACK_NAME in "${OS_STACKS[@]}"; do continue else echo "Deleting orphaned stack: $STACK_NAME" - lftools openstack --os-cloud "$os_cloud" stack delete "$STACK_NAME" + lftools openstack --os-cloud "$os_cloud" stack delete --force "$STACK_NAME" fi done