]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Fix foreign key constraint delete provider network
authorAaron Rosen <aaronorosen@gmail.com>
Mon, 8 Sep 2014 23:08:30 +0000 (16:08 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Mon, 27 Oct 2014 10:50:56 +0000 (03:50 -0700)
commit0dc5d9f77e0d14f57ead1f53b9e2ad0a68faf786
tree7188ea0660aecc1565abe1c7b8dcc833adb08202
parent8cd633ad19722c5e215c66e426282108826c9a6b
NSX: Fix foreign key constraint delete provider network

The cascade delete on the tz_network_bindings table is not
taking effect with the NSX plugin. In order to fix this, this
will require a db migration. This patch allows us to provide a
fix for this by deleting the tz_network_bindings within a transaction
to avoid the foreign key constraint. This patch fixes it this way so
that it can be backported to icehouse. Later a patch will be pushed with a
migration which corrects the db schema.

Closes-bug: #1367032

Change-Id: I19d389acc710224baff79ad114fab756b2e21cfc
neutron/plugins/vmware/dbexts/db.py
neutron/plugins/vmware/plugins/base.py
neutron/tests/unit/vmware/extensions/test_providernet.py