neutron/neutron/tests/unit/plugins
Miguel Angel Ajo 61d26b8b74 Fix hostname roaming for ml2 tunnel endpoints.
Change I75c6581fcc9f47a68bde29cbefcaa1a2a082344e introduced
a bug where host name changes broke tunneling endpoint updates.
Tunneling endpoint updates roaming a hostname from IP to IP
are a common method for active/passive HA with pacemaker and
should happen automatically without the need for API/CLI calls [1].

delete_endpoint_by_host_or_ip is introduced to allow cleanup of
endpoints that potentially belonged to the newly registered agent,
while preventing the race condition found when deleting ip1 & ip2
in the next situation at step 4:

1) we have hostA: ip1
2) hostA goes offline
3) hostB goes online, with ip1, and registers
4) hostA goes online, with ip2, and registers

[1] https://bugs.launchpad.net/python-neutronclient/+bug/1381664

Change-Id: I04d08d5b82ce9911f3af555b5776fc9823e0e5b6
Closes-Bug: #1464178
2015-09-21 12:50:00 +02:00
..
brocade Support oslo_db 1.12 2015-06-24 01:32:44 +02:00
embrane Reorganize unit test tree 2015-04-06 23:28:31 +00:00
hyperv Reorganize unit test tree 2015-04-06 23:28:31 +00:00
ml2 Fix hostname roaming for ml2 tunnel endpoints. 2015-09-21 12:50:00 +02:00
oneconvergence Switch to oslo.service 2015-06-29 13:20:55 +03:00
opencontrail Move in-tree vendor VIF_TYPE_* constants 2015-08-21 00:12:29 +02:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00