]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Delete fipnamespace when external net removed on DVR
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Thu, 1 Oct 2015 18:48:55 +0000 (11:48 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Thu, 22 Oct 2015 19:54:55 +0000 (12:54 -0700)
commitcb465d40f59bfbc109204dc16259c0e4ce1c903a
tree2f428e1bf8ce965d7dc6d579b721fd6d90502496
parentda4b564590f4d4c8faa3daaddb45116dc4fa5b7f
Delete fipnamespace when external net removed on DVR

The fipnamespace is associated with an external network
on a given node. In the case of DVR there is just one
single FIP namespace for a given node.

We have seen some race conditions in the agent for creation
and deletion of the fip namespace. See the bug report for
details on the failure.

So in order to address this race condition and make the
code more stable, we will be cleaning up the fip namespace
only when an external network is removed.

The server will be sending a rpc notification message to
the agent to cleanup the fip namespace when the external
net is removed.

This patch address the above mentioned issue by not constantly
deleting and creating the fip namespace.

Closes-Bug: #1501873
Change-Id: I86869f66d4afffad7db09942578b1a456a9bd418
neutron/agent/l3/agent.py
neutron/agent/l3/dvr.py
neutron/api/rpc/agentnotifiers/l3_rpc_agent_api.py
neutron/db/l3_dvr_db.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/db/test_l3_dvr_db.py