]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Don't start transaction during floating IP delete
authorKevin Benton <blak111@gmail.com>
Fri, 27 Feb 2015 22:56:39 +0000 (14:56 -0800)
committerKevin Benton <blak111@gmail.com>
Tue, 10 Mar 2015 01:53:09 +0000 (18:53 -0700)
commit4840fe79d7d58d26cd65113f896e766ddf55f201
tree00474b1848bb7c72324c6cc85d2c565c21724114
parent4ced2d1a8650db3c69f61325ca4cabd90bc497e6
Don't start transaction during floating IP delete

The previous floating IP code was starting a transaction to
delete the floating IP object from the database and then
calling the core plugin's delete_port method which could make
many yielding calls, risking deadlocks.

This patch updates the relationship between floating IP and the
ports table to allow the port deletion to automatically clear
the floating IP object via a cascade.

Closes-Bug: #1426543
Closes-Bug: #1426482
Change-Id: I4b1cdc198c18d5c673a35aaf9c7e960f97f1e20b
neutron/db/l3_db.py
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/db/migration/alembic_migrations/versions/f15b1fb526dd_cascade_floatingip.py [new file with mode: 0644]