stack delete fails with neutron router
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
New
|
Undecided
|
Unassigned |
Bug Description
Deleting a stack would fail when trying to delete a neutron router.
Tested on Juno (heat --version = 0.2.12)
get the templates from here:
https:/
https:/
To reproduce:
heat stack-create somestackname -f juno_test_
wait for it to finish
heat stack-delete somestackname
Deletion will fail here because the router could not be deleted and neutron returns a 409 error when trying to delete it (manually as well)
The proper way to delete the router in this case is:
neutron router-list (get the router UUID)
neutron router-port-list $router-UUID (to get the ports UUID)
for each port UUID do
neutron router-
and lastly do
neutron router-delete $router-UUID
After this, re-run stack-delete and it will be removed successfully.
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
On a retest, one can also delete by first doing neutron floatingip-list and for each do floatingip-delete and then run neutron router- gateway- clear router-uuid. stack-delete after this point will delete the stack.