]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Delete FIP agent gateway port with external gw port
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Mon, 22 Jun 2015 23:33:32 +0000 (16:33 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Tue, 8 Sep 2015 18:44:41 +0000 (11:44 -0700)
commitd5aa1659f56601d8f4d5e17273d5ade7a0e202dd
tree68058f812195e6ed100582f98bb708d442741b50
parentdbe420c2b79f0df07f607d847f2f94c1cecc4eba
Delete FIP agent gateway port with external gw port

FIP agent gateway ports are associated with external
networks and specific host.

Today FIP agent gateway ports are deleted for
every floatingip associate and disassociate. This
introduces race conditions in the port delete and also
un-necessary access to the db.

This patch will delete the FIP agent gateway port when
the last gateway port of the external network is deleted.

The child patch linked to this parent patch will clean
up the FIP agent gateway port delete when associate,
disassociate and delete of floatingip happens.

This should also cover the case when an agent for some
reason was unable to request agent gw port delete.
(agent died).

Related-Bug: #1408855
Related-Bug: #1468007
Related-Bug: #1450982

Change-Id: I6637a771e6a6ce74e848cb74b779043e16a54a84
neutron/db/l3_dvr_db.py
neutron/tests/functional/services/l3_router/test_l3_dvr_router_plugin.py
neutron/tests/unit/db/test_l3_dvr_db.py