neutron/neutron/agent
Swaminathan Vasudevan acd04d668b DVR: Clean stale snat-ns by checking its existence when agent restarts
At present there is no clear way to distinguish when the snat_namespace
object is initialized and when the actual namespace is created.
There is no way to check if the namespace already existed. The
code was only checking at the snat_namespace object instead of its
existence.

This patch addresses the issue by adding in an exists method to the
namespace object to identify the existence of the namespace in the
given agent.

This would allow us to check for the existence of the namespace,
and also allow us to identify the stale snat namespace and
delete the namespace when the gateway is cleared as the agent restarts.

This also applies for conditions when the router is manually moved
from one agent to another agent while the agent is dead. When the
agent wakes up it would clean up the stale snat namespace.
Change-Id: Icb00297208813436c2a9e9a003275462293ad643
Closes-Bug: #1557909
2016-08-04 10:39:15 -07:00
..
common Refactoring config options of agent/common/ovs_lib 2016-07-31 13:39:52 +00:00
dhcp Refactoring config options for dhcp agent 2016-07-06 17:24:23 +00:00
l2 Introduce bulk push to rpc callback mechanism 2016-08-01 14:22:56 -07:00
l3 DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
linux Merge "Remove deprecated network_device_mtu option" 2016-07-29 16:09:16 +00:00
metadata Move state reporting initialization to after worker forking 2016-06-21 13:19:29 +00:00
ovsdb Merge "Fix module import for ovs_vsctl_timeout option" 2016-08-03 16:28:29 +00:00
windows Merge "Reuse to_utf8() and jsonutils.dump_as_bytes()" 2016-04-15 23:40:59 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
agent_extension.py Generalize agent extension mechanism 2016-07-19 13:45:22 +00:00
agent_extensions_manager.py Generalize agent extension mechanism 2016-07-19 13:45:22 +00:00
dhcp_agent.py Refactoring config options for dhcp agent 2016-07-06 17:24:23 +00:00
firewall.py Use ICMPV6_TYPE_* constants from neutron-lib 2016-05-28 07:53:35 -07:00
l3_agent.py Refactoring config options for l3 agent config 2016-07-21 18:29:18 +00:00
metadata_agent.py Switch to oslo.cache 2016-06-02 15:22:36 +00:00
rpc.py Don't use exponential back-off for report_state 2016-07-28 14:54:19 +03:00
securitygroups_rpc.py Reuse common code in securitygroups_rpc module 2016-07-04 10:02:26 +00:00