vmware-nsx/neutron/tests
Roman Podoliaka 88fe8afe50 Fix a race condition in agents status update code
Code handling agents status updates coming via RPC checks,
if a corresponding entry for the given (agent_type, host)
pair already exists in DB and updates it. And if it doesn't
exist, a new entry is created.

Without a unique constraint this can cause a race condition
resulting in adding of two agent entries having the same value
of (agent_type, host) pair.

Note, that it's already not allowed to have multiple agents of
the same type having the same host value, but currently it's
enforced only at code level, not at DB schema level, which
effectively makes race conditions possible.

Closes-Bug: #1254246

Change-Id: I1ebaa111154b3d6b34074705b579097ab730594c
2013-12-09 15:18:34 +02:00
..
etc Service Type Framework refactoring 2013-07-25 21:47:30 +04:00
functional Add configurable ovsdb monitor respawn interval 2013-11-20 15:16:27 -06:00
unit Fix a race condition in agents status update code 2013-12-09 15:18:34 +02:00
var Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
base.py Replace stubout with fixtures 2013-11-24 10:46:08 -05:00
tools.py Replace mox in unit tests with mock 2013-11-18 22:17:14 +09:00