yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50766
[Bug 1580899] [NEW] Overlaped new router interface cannot remove
Public bug reported:
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.
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
** Affects: neutron
Importance: Undecided
Status: New
--
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:
Overlaped new router interface cannot remove
Status in neutron:
New
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.
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
Follow ups