Router without active ports fails to be deleted, are reports wrong error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
vaibhav_kale |
Bug Description
Version
=======
Havana, RHEL, neutron+ovs, python-
Description
===========
It's impossible to delete a router while it still has inactive ports.
The error message states that the router still has active ports.
# neutron router-port-list router1
+------
| id | name | mac_address | fixed_ips |
+------
| 052a48e4-
| 065cef02-
| 7a020243-
| 7af56958-
| f034cb8a-
+------
# for i in `neutron router-port-list router1 | grep subnet_id | cut -d" " -f 2` ; do neutron port-show $i ; done | grep status
| status | ACTIVE |
| status | ACTIVE |
| status | ACTIVE |
| status | ACTIVE |
| status | ACTIVE |
# neutron router-delete router1
Router 727edf71-
# for i in `neutron router-port-list router1 | grep subnet_id | cut -d" " -f 2` ; do neutron port-update $i --admin_state_up False ; done | grep status
# for i in `neutron router-port-list router1 | grep subnet_id | cut -d" " -f 2` ; do neutron port-show $i ; done | grep status
| status | DOWN |
| status | DOWN |
| status | DOWN |
| status | DOWN |
| status | DOWN |
# neutron router-delete router1
Router 727edf71-
From /var/log/
=======
2013-10-07 16:39:40.429 2341 ERROR neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:39:40.429 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 ERROR neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
2013-10-07 16:40:34.870 2341 TRACE neutron.
Changed in openstack-ci: | |
status: | New → Invalid |
no longer affects: | openstack-ci |
Changed in neutron: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
Changed in neutron: | |
assignee: | ZhiQiang Fan (aji-zqfan) → nobody |
Changed in neutron: | |
assignee: | nobody → Brandon Logan (brandon-logan) |
Changed in neutron: | |
assignee: | Brandon Logan (brandon-logan) → nobody |
Changed in neutron: | |
assignee: | nobody → vaibhav_kale (vaibhav-kale) |
Changed in neutron: | |
status: | Triaged → In Progress |
Changed in neutron: | |
milestone: | none → juno-1 |
Changed in neutron: | |
milestone: | juno-1 → icehouse-rc2 |
no longer affects: | neutron/icehouse |
Changed in neutron: | |
milestone: | icehouse-rc2 → 2014.1 |
The behavior is correct, so we clarify the error message.