neutron/neutron/agent/l3
Hemanth Nakkina 73e1672d6f 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.

Closes-Bug: #1894843
Change-Id: Ic35c2f9bceacec8eeba67a2b1ea0cd0b0ffc72fe
(cherry picked from commit 393d484e07)
2021-02-22 02:01:41 +00:00
..
extensions Don't fail if FIP is not in port forwarding cache during cleaning 2021-01-07 15:44:12 -05: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:53:20 +00:00
dvr.py Move arp device check out of loop 2020-01-04 15:48:11 +08:00
dvr_edge_ha_router.py Do not link up HA router gateway in backup node 2020-03-25 16:09:42 +08:00
dvr_edge_router.py Fix deletion of rfp interfaces when router is re-enabled 2021-02-22 02:01:41 +00:00
dvr_fip_ns.py Ensure fip ip rules deleted when fip removed 2020-09-08 16:01:37 +01:00
dvr_local_router.py Ensure fip ip rules deleted when fip removed 2020-09-08 16:01:37 +01:00
dvr_router_base.py remove neutron.common.constants 2019-04-04 14:10:26 -06:00
dvr_snat_ns.py Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +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-03-25 16:09:42 +08:00
ha_router.py Support gateway which is not in subnet CIDR in ha_router 2020-10-09 09:35:41 +00:00
item_allocator.py Fix flake8 N534 untranslated exception message 2018-10-19 15:46:04 -04:00
keepalived_state_change.py "keepalived_state_change" needs to use threading to send arping 2020-04-03 09:04:24 +00:00
l3_agent_extension_api.py Add router_factory to l3-agent and L3 extension API 2019-04-26 10:22:50 +09:00
l3_agent_extensions_manager.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00: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 Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
router_info.py Add locks for methods which sets nat rules in router 2020-12-04 11:46:27 +00:00