yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #57569
[Bug 1580899] Re: Overlapped new router interface cannot remove
*** This bug is a duplicate of bug 1523859 ***
https://bugs.launchpad.net/bugs/1523859
** This bug has been marked a duplicate of bug 1523859
Failing router interface add changes port device_id/device_owner attributes
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1580899
Title:
Overlapped new router interface cannot remove
Status in neutron:
Fix Released
Bug description:
To reproduce the bug:
1. Create a router (could be any type: legacy, HA, DVR, DVR + HA)
2. Create network1 with subnet1 192.168.111.0/24 gateway 192.168.111.1
3. Create network2 with subnet2 192.168.111.0/24 gateway 192.168.111.254
4. Create router interface to subnet1 by using subnet1's subnet_id
5. Create a port1 with IP 192.168.111.254 in subnet2
6. Create router interface to subnet2 by using port1's port_id
Then you will get some API exception like:
Bad router request: Cidr 192.168.111.0/24 of subnet 4c230a4b-7d34-4e11-9351-4fa720c94004
overlaps with cidr 192.168.111.0/24 of subnet ba280c8a-c761-407d-bcfe-741dae8a37d3.
Neutron server returns request_ids: ['req-d6488a58-44a8-40c8-8e9e-fad94e43bafd']
And finally the port1 will never be able to delete.
Exception trace:
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager [req-5274c5a0-790d-463f-a6cd-8334b9944a60 3024b3c2f2da48fbbf426084b0706f84 5ff1da9c235c4ebcaefeecf3fff7eb11 - - -] Error during notification for neutron.db.l3_db._prevent_l3_port_delete_callback port, before_delete
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager Traceback (most recent call last):
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager File "/usr/lib/python2.7/site-packages/neutron/callbacks/manager.py", line 146, in _notify_loop
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager callback(resource, event, trigger, **kwargs)
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager File "/usr/lib/python2.7/site-packages/neutron/db/l3_db.py", line 1851, in _prevent_l3_port_delete_callback
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager l3plugin.prevent_l3_port_deletion(context, port_id)
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager File "/usr/lib/python2.7/site-packages/neutron/db/l3_db.py", line 1451, in prevent_l3_port_deletion
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager reason=reason)
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager ServicePortInUse: Port cbccd81c-d8c0-4dfd-bff3-24c4edeb6825 cannot be deleted directly via the port API: has device owner network:router_interface.
2016-05-12 15:13:49.847 20792 ERROR neutron.callbacks.manager
2016-05-12 15:13:49.849 20792 INFO neutron.api.v2.resource [req-5274c5a0-790d-463f-a6cd-8334b9944a60 3024b3c2f2da48fbbf426084b0706f84 5ff1da9c235c4ebcaefeecf3fff7eb11 - - -] delete failed (client error): Port cbccd81c-d8c0-4dfd-bff3-24c4edeb6825 cannot be deleted directly via the port API: has device owner network:router_interface.
And the this port will also can not remove by router_interface_remove:
2016-05-12 16:20:28.535 21756 INFO neutron.api.v2.resource [req-3ba33215-e09e-423d-a7aa-07cdd66fea61 3024b3c2f2da48fbbf426084b0706f84 5ff1da9c235c4ebcaefeecf3fff7eb11 - - -] remove_router_interface failed (client error): Router 3895a472-a64c-424e-b0c9-0f610db88f67 does not have an interface with id 1760df10-f5f0-4182-a0cc-a144d5aa46c5
2016-05-12 16:20:28.536 21756 INFO neutron.wsgi [req-3ba33215-e09e-423d-a7aa-07cdd66fea61 3024b3c2f2da48fbbf426084b0706f84 5ff1da9c235c4ebcaefeecf3fff7eb11 - - -] 172.16.5.10 - - [12/May/2016 16:20:28] "PUT /v2.0/routers/3895a472-a64c-424e-b0c9-0f610db88f67/remove_router_interface.json HTTP/1.1" 404 418 0.173747
This patch introduces this new bug:
https://bugs.launchpad.net/neutron/+bug/1475093
https://review.openstack.org/#/c/202357/
Some bugs maybe related:
https://bugs.launchpad.net/bgpvpn/+bug/1537067
https://bugs.launchpad.net/neutron/+bug/1537091
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1580899/+subscriptions
References