neutron/neutron
armando-migliaccio 6a5b3f4dd6 Avoid dhcp agent race condition on subnet and network delete
Ensure that ports that are about to be deleted are 'selected
for update'. By doing so, we avoid a race condition between
subnet and network delete operations carried out by two
separate server instances.

A race caused by the dhcp agent deleting the DHCP port
(caused by a subnet-delete event notification) can
still occur and will be addressed in a subsequent patch.

delete_subnet's way to delete ports has been tweaked to
ensure that postgres db can handle the SELECT FOR UPDATE
correctly.

Partial-Bug:1197627

Change-Id: I5bd75a758395a2faeff9db35a03c42dfa8ae0eab
2013-11-22 21:51:45 +00:00
..
agent Add state reporting to the metadata agent 2013-11-22 10:38:07 +04:00
api Merge "Adds delete of a extra_dhcp_opt on a port" 2013-11-22 09:55:36 +00:00
cmd remove binaries under bin 2013-08-16 10:10:30 +08:00
common Add state reporting to the metadata agent 2013-11-22 10:38:07 +04:00
db Avoid dhcp agent race condition on subnet and network delete 2013-11-22 21:51:45 +00:00
debug Fix incorrect indentations found by Pep 1.4.6+ 2013-10-19 10:50:16 +02:00
extensions Adds delete of a extra_dhcp_opt on a port 2013-11-14 14:36:01 -07:00
locale Imported Translations from Transifex 2013-11-22 06:41:28 +00:00
openstack Fix import log_handler error with publish_errors set 2013-11-05 22:47:32 -08:00
plugins Merge "ML2 plugin should not delete ports on subnet deletion" 2013-11-22 21:24:19 +00:00
scheduler Ensure router exists when auto_schedule_routers 2013-09-26 22:48:46 +08:00
server Disable lazy translation 2013-10-01 23:16:23 +00:00
services Merge "Adds tests, fixes Radware LBaaS driver as a result" 2013-11-22 09:55:17 +00:00
tests Merge "ML2 plugin should not delete ports on subnet deletion" 2013-11-22 21:24:19 +00:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
auth.py Add request-id to log messages 2013-11-21 17:01:33 +09:00
context.py Add request-id to log messages 2013-11-21 17:01:33 +09:00
hooks.py Fixes Windows setup dependency bug 2013-08-15 22:58:14 +03:00
manager.py Add agent scheduling for LBaaS namespace agent 2013-07-19 13:25:04 +04:00
neutron_plugin_base_v2.py Remove openstack.common.exception usage 2013-08-06 10:42:02 +02:00
policy.py Add log statements for policy check failures 2013-11-14 19:21:15 -08:00
quota.py Fallback to Quota Conf Driver if Quotas table is not defined 2013-10-09 22:28:03 +09:00
service.py Merge "Creates multiple worker processes for API server" 2013-10-31 01:39:19 +00:00
version.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
wsgi.py Merge "Creates multiple worker processes for API server" 2013-10-31 01:39:19 +00:00