]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid dhcp agent race condition on subnet and network delete
authorarmando-migliaccio <amigliaccio@nicira.com>
Sat, 28 Sep 2013 01:38:16 +0000 (18:38 -0700)
committerGerrit Code Review <review@openstack.org>
Sat, 26 Oct 2013 17:36:05 +0000 (17:36 +0000)
commitffa11a64706e898ba3ae45f84920d632b5947add
tree8c7423a24eada2c1a1c95ae256c0faaaacab0165
parentfd952c9fbeb37e295849a01bce0dff1003878d5e
Avoid dhcp agent race condition on subnet and network delete

This patch ensures that, when the dhcp agent queries the server
to retrieve and delete its DHCP port, it does so by selecting
for update. This has been done by introducing a new method
that combines the get and delete in one shot.

Closes-Bug:1197627

Change-Id: I1e8a87d7dc1a1cb9309aeefd41619e20f49f95a6
neutron/db/db_base_plugin_v2.py
neutron/db/dhcp_rpc_base.py
neutron/tests/unit/test_db_rpc_base.py