stack delete fails with neutron router

Bug #1530863 reported by Removed by request
6
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://raw.githubusercontent.com/cmyster/templates/master/juno_test_template.yaml
https://raw.githubusercontent.com/cmyster/templates/master/lb_server.yaml

To reproduce:

heat stack-create somestackname -f juno_test_template.yaml (I changed the fedora image inside to point at something newer)

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-interface-delete $router-UUID $port-UUID
and lastly do
neutron router-delete $router-UUID
After this, re-run stack-delete and it will be removed successfully.

Revision history for this message
Removed by request (removed3381998) wrote :

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.

Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.