neutron/neutron/tests/unit/api
Eugene Nikanorov b77a416313 Avoid race condition for reserved DHCP ports
This patch introduces mechanism similar to compare-and-swap
for updating reserved DHCP port.

This addresses a case when two DHCP agents that start nearly at
the same time are assigned to one network and there is a reserved
DHCP port in the network. Then each of agents will try to use it
because agents don't check if reserved port is still available.
Reserved DHCP port can be acquired by different agent between calls to
get_active_networks and update_port, so this patch adds a check for
this case.

Change-Id: I0277ab537ff9d3a664c03ea291b9ec2b0e784dbb
Closes-Bug: #1425402
(cherry picked from commit f76ef76f25)
2015-11-27 12:42:53 +00:00
..
rpc Avoid race condition for reserved DHCP ports 2015-11-27 12:42:53 +00:00
v2 Merge "Disable port creation when invalid MAC address is provided" 2015-08-18 20:56:25 +00:00
__init__.py Send DHCP notifications regardless of agent status 2013-12-19 07:08:19 +00:00
test_api_common.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_extensions.py Decentralize the managemement of service providers 2015-09-01 03:27:13 +00:00