neutron/neutron/tests/unit/plugins/common
Anh Tran 17005132d1 Rollback port after failed to add it to router
After failed to add port to a router, we cannot re-use and/or delete
this port.

With concurrent requests occuring, neutron will accept one request
and the other will be rejected with an 'overlapped CIDR' message.
Patch [1] fixed the race condition, but neutron raises
'Port already has an attached device' instead of
'overlapped CIDR', because neutron didn't cleanup the port when
the request was retried.
[1] https://review.openstack.org/#/c/303966/

This patch is needed to fix the bug completely. We will catch any
exception when adding an interface by port to a router. After that,
we rollback this port to its original state.

Change-Id: Ib68aee164a3062648fc882012d57b5e381f52196
Closes-Bug: #1535549
2016-09-08 12:59:26 +00:00
..
__init__.py ovs: Make interface name hashing algorithm common and extend it 2015-11-23 09:26:37 +01:00
test_utils.py Rollback port after failed to add it to router 2016-09-08 12:59:26 +00:00