neutron/neutron/agent/l3
Hemanth Nakkina 8f3daf3f98 Fix deletion of rfp interfaces when router is re-enabled
1. When dvr router is disabled and enabled back, the rfp
interfaces are deleted on the nodes without snat-* namespace.
This is due to creation of snat namespace during router
initialization stage on all the nodes. At later stages, since
the gw_port_host is not bounded on this node, external gateway
is removed which triggers removal of rfp interfaces and snat
namespace.
Create snat namespace only on the nodes where gw_port_host is
bounded.

2. In case of DVR SNAT, when the l3 agent is rescheduled to
another node, the rfp interfaces on qrouter-* namespace are
removed. Instead of calling external_gateway_removed() which
further deletes the rfp interfaces, the qg-, sg- interfaces
need to be unplugged and snat namespace need to be deleted.

To resolve unit test errors after clean cherrypick, the bridge is
added to the unplug function call in external_gateway_updated.

Closes-Bug: #1894843
Change-Id: Ic35c2f9bceacec8eeba67a2b1ea0cd0b0ffc72fe
(cherry picked from commit 393d484e07)
2021-03-17 08:46:23 +00:00
..
extensions [QoS] Clear rate limits when default null values are used 2018-07-24 15:52:26 +02:00
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py Fix migration from the HA to non-HA routers 2020-11-19 10:54:15 +00:00
dvr.py Revert "DVR: Fix allowed_address_pair IP, ARP table update by neutron agent" 2018-06-18 22:29:42 +00:00
dvr_edge_ha_router.py Do not link up HA router gateway in backup node 2020-04-23 21:45:06 +00:00
dvr_edge_router.py Fix deletion of rfp interfaces when router is re-enabled 2021-03-17 08:46:23 +00:00
dvr_fip_ns.py Ensure fip ip rules deleted when fip removed 2020-09-08 16:10:17 +01:00
dvr_local_router.py Ensure fip ip rules deleted when fip removed 2020-09-08 16:10:17 +01:00
dvr_router_base.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
dvr_snat_ns.py Switch isolated metadata proxy to bind to 169.254.169.254 2019-02-12 10:30:47 +00:00
fip_rule_priority_allocator.py Fix two spelling mistakes 2016-05-30 01:58:04 +00:00
ha.py Do not link up HA router gateway in backup node 2020-04-23 21:45:06 +00:00
ha_router.py Merge "Don't raise FileNotFoundError during disabling keepalived" into stable/queens 2020-11-12 02:32:08 +00:00
item_allocator.py DVR: Check for item_allocator key before releasing 2018-04-06 02:37:48 +00:00
keepalived_state_change.py [stable only] Configure logging in keepalived_state_change 2020-07-17 09:32:35 +00:00
l3_agent_extension.py Add a new method ha_state_change to L3 agent extension 2017-10-18 09:41:38 +07:00
l3_agent_extension_api.py Merge "Add a new method get_router_info to L3 agent extension API" 2017-10-22 17:00:22 +00:00
l3_agent_extensions_manager.py Add a new method ha_state_change to L3 agent extension 2017-10-18 09:41:38 +07:00
legacy_router.py Remove deprecated send_arp_for_ha option 2017-04-18 13:38:35 -04:00
link_local_allocator.py spelling error: 2016-06-30 10:17:18 +08:00
namespace_manager.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
namespaces.py Disable IPv6 forwarding by default on HA routers 2018-06-03 19:10:40 +00:00
router_info.py Fix deletion of subnet_id from pd_subnets 2020-08-25 07:00:35 +00:00