neutron/neutron/agent/l3
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
..
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
config.py Refactoring config options for l3 agent config 2016-07-21 18:29:18 +00:00
dvr.py Merge "Fixes typos Openstack -> OpenStack" 2016-02-05 04:23:26 +00:00
dvr_edge_ha_router.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
dvr_edge_router.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
dvr_fip_ns.py Remove deprecated network_device_mtu option 2016-07-25 19:51:00 +00:00
dvr_local_router.py Set prefix on floating_ip_mangle rules 2016-07-27 17:43:17 -07:00
dvr_router_base.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
dvr_snat_ns.py Revert "DVR: Clear SNAT namespace when agent restarts after router move" 2016-06-07 15:26:23 +00:00
fip_rule_priority_allocator.py Fix two spelling mistakes 2016-05-30 01:58:04 +00:00
ha.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
ha_router.py Delete default route if no gateway in external net 2016-07-07 13:46:44 +00:00
item_allocator.py DVR: Fix ItemAllocator class to handle exceptions 2016-07-14 13:05:45 -04:00
keepalived_state_change.py oslo: remove usage of oslo.log verbose option 2016-05-26 15:01:08 +00:00
legacy_router.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
link_local_allocator.py spelling error: 2016-06-30 10:17:18 +08:00
namespace_manager.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
namespaces.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
router_info.py Set prefix on floating_ip_mangle rules 2016-07-27 17:43:17 -07:00
router_processing_queue.py Fix module's import order 2016-01-22 06:38:42 -08:00