]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NVP plugin: Do backend router delete out from db transaction
authorSalvatore Orlando <salv.orlando@gmail.com>
Wed, 11 Dec 2013 23:10:11 +0000 (15:10 -0800)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 13 Dec 2013 12:04:57 +0000 (04:04 -0800)
commit2aaec3a81148e6c0cefd8f5b989dbcecf872a680
tree711821c8965446a13b3d75de6a7d70722deab677
parentdbd6d454574af0911152fbeb5d687df6679c7436
NVP plugin: Do backend router delete out from db transaction

Performing the NVP API operation from within a DB transaction
increases the risk of a deadlock between sqlalchemy and eventlet.

With this patch, the operation is moved outside of the db transaction
and appropriate mechanism are put in place for:
i) ensuring neutron db consistency in case of NVP failures
ii) avoiding deleting from backend if neutron logic does not allow it

This patch also synchronizes the routine for removing a router
gateway port from NVP.

Change-Id: I58d156e303e7a56ceb8c62766c192e154b0a3bb4
Closes-Bug: #1258150
neutron/plugins/nicira/NeutronPlugin.py