Handle stack removal with the force option 19/16119/3
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 8 Jul 2019 22:35:40 +0000 (08:35 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 9 Jul 2019 22:12:27 +0000 (08:12 +1000)
Issue: RELENG-2058
Change-Id: I7e428c6b3a5dd0c21f10b368cb8e9584d5e77648
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/openstack-stack-del-with-force-b50cadbacc49d516.yaml [new file with mode: 0644]
shell/openstack-cleanup-orphaned-stacks.sh

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 (file)
index 0000000..31a973b
--- /dev/null
@@ -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.
index 8140ade..ccc2996 100644 (file)
@@ -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