]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
nicira: fix db integrity error during port deletion
authorarmando-migliaccio <armamig@gmail.com>
Tue, 31 Dec 2013 13:51:43 +0000 (05:51 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Tue, 31 Dec 2013 17:30:37 +0000 (09:30 -0800)
commitde4b5a2bba57cbd5294fb6f9527d64b8eeddf901
tree2b003f16404825f159d3fa8769d58e288384b2ee
parent8c7cdd0088e463e2558c48551553542f20bcb56d
nicira: fix db integrity error during port deletion

Due to the fact that plugin port operations are not
transactional (as they involve non synchronized DB
and Controller operations), concurrent (interleaved)
port requests may accidentally cause the insertion
of the mapping entry (neutron-port-id, nvp-port-id)
more than once. In case this occurs, it's safe to
expect the failure and continue the normal process
of the operation being requested.

Closes-bug: #1265081

Change-Id: Ifcf5b453fa08145df844c2de3cbb08bf2f4baa59
neutron/plugins/nicira/dbexts/nicira_db.py
neutron/tests/unit/nicira/test_nicira_db.py [new file with mode: 0644]