]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add RPC command and delete if last FIP on Agent
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Mon, 22 Jun 2015 23:50:43 +0000 (16:50 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Tue, 8 Sep 2015 18:52:11 +0000 (11:52 -0700)
commit639f1893dde0d393a97b29ca5309dba716831a7f
tree29f6fc8c8cf3d507fbdff92fe05e745119fb63b1
parentd5aa1659f56601d8f4d5e17273d5ade7a0e202dd
Add RPC command and delete if last FIP on Agent

Today FloatingIP Agent gateway port is deleted and
re-created for DVR based routers based on floatingip
association and disassociation with VMs on compute
nodes by the plugin.

This introduces lot more strain on the plugin to
create and delete these ports when VMs come up and
get deleted that are associated with FloatingIps.

This patch will introduce an RPC call for the agent
to initiate a agent gateway port delete.

Also the agent will look for the last floatingip that
it manages, and if condition satisfies, the agent will
request the server to remove the FloatingIP Agent
Gateway port.

Change-Id: I47694b2ee60c363e2fe59ad5f7d168252da08a45
Related-Bug: #1468007
Related-Bug: #1408855
Related-Bug: #1450982
neutron/agent/l3/agent.py
neutron/agent/l3/dvr_local_router.py
neutron/api/rpc/handlers/l3_rpc.py
neutron/db/l3_dvr_db.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/functional/services/l3_router/test_l3_dvr_router_plugin.py
neutron/tests/unit/agent/l3/test_dvr_local_router.py
neutron/tests/unit/db/test_l3_dvr_db.py