]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix race condition in network scheduling to dhcp agent
authorEugene Nikanorov <enikanorov@mirantis.com>
Wed, 5 Feb 2014 21:52:35 +0000 (01:52 +0400)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:17 +0000 (15:20 +0800)
commitf89816d4c9ae3c1db6634282224daa14dccbc268
tree53eca3f511b4fdf60bc97aeada77be7262d10a07
parent7dd15d0ee4faf2acce48e538335294a05f6613ab
Fix race condition in network scheduling to dhcp agent

Rarely dhcp agent rpc call get_active_networks_info() can interleave
with network scheduling initiated by create.port.end notification.
In this case scheduling raises and port creation returns 500.
Need to synchronize on DhcpNetworkBindings table.

Closes-Bug: #1276552
Change-Id: I52d94a40772a99c7032dba15b200bf0f21362f93
neutron/scheduler/dhcp_agent_scheduler.py