Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Unable to Delete Stacks Stuck in "DELETE_FAILED" State
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
Delete operation for OpenStack stack fails, leaving the stack in a DELETE FAILED state.
$ openstack stack list | grep DELETE_FAILED| c33fdc4b-36bb-431e-aa18-c8fa2ae60eef | demo_stack | DELETE_FAILED | 2019-08-16T07:55:26Z | 2019-08-17T15:15:06Z |Environment
- Platform9 Managed OpenStack - v3.6.0 and Higher
- Heat
Cause
OpenStack Heat fails to delete a stack, leaving it in a DELETE_FAILED state, because the request timed out.
Resolution
- Verify that all the servers in the stack which failed to delete are in a DELETING state.
$ openstack stack list --all | grep -i DELETE_FAILED | awk '{ print $2 }' | while read i; do openstack stack resource list -n 2 $i | grep -i server | awk '{ print $4}' | while read s; do openstack server show $s -c OS-EXT-STS:task_state -f value ; done; done- Perform a state reset for all the servers in these stacks.
$ openstack stack list --all | grep -i DELETE_FAILED | awk '{ print $2 }' | while read i; do openstack stack resource list -n 2 $i | grep -i server | awk '{ print $4}' | while read s; do openstack server set --state active $s ; done; done- Verify that there are no more servers in the DELETING state.
$ openstack stack list --all | grep -i DELETE_FAILED | awk '{ print $2 }' | while read i; do openstack stack resource list -n 2 $i | grep -i server | awk '{ print $4}' | while read s; do STATE=$(openstack server show $s -c OS-EXT-STS:task_state -f value); if [ "$STATE" == "deleting" ]; then echo $n; fi; done; done- Delete the DELETE_FAILED stacks.
$ openstack stack list --all | grep -i DELETE_FAILED | awk '{ print $2 }' | while read i; do openstack stack delete $i --yes; doneVariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message