]> 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)
committerEugene Nikanorov <enikanorov@mirantis.com>
Thu, 6 Feb 2014 11:40:54 +0000 (15:40 +0400)
commiteed1b7cbdb00a3fbac9f19bab1a2d7366833b753
tree41e0ac894006bd05e2e430e804be46cca4941c43
parentc4e7ae64c67d26c0b96cc86589a74bc18a10861d
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