Merge "Handle stack removal with the force option"
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 10 Jul 2019 00:12:22 +0000 (00:12 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Wed, 10 Jul 2019 00:12:22 +0000 (00:12 +0000)
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