neutron/neutron/agent
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
..
common Fix wrong packet_type set for IPv6 GRE tunnels in OVS 2021-03-03 10:23:26 +00:00
dhcp Improve DHCP agent's debug messages 2021-01-24 09:59:19 +00:00
l2 Clear residual qos rules after l2-agent restarts. 2019-01-24 06:43:01 +00:00
l3 Fix deletion of rfp interfaces when router is re-enabled 2021-03-17 08:46:23 +00:00
linux Merge "[OVS FW] Clean conntrack entries with mark == CT_MARK_INVALID" into stable/queens 2021-03-12 13:31:07 +00:00
metadata Remove extra header fields in proxied metadata requests 2020-03-03 20:11:49 +00:00
ovsdb Merge "Fixes using SSL OVSDB connection" 2018-02-09 09:04:26 +00:00
windows windows: fix terminating processes 2020-10-09 09:41:34 +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 Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
dhcp_agent.py Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
firewall.py consume load_class_by_alias_or_classname from neutron-lib 2017-10-21 06:01:15 -06:00
l3_agent.py Refactoring agent linux&ovsdb config 2017-08-25 10:41:39 -04:00
metadata_agent.py Remove deprecated cache_url 2017-11-10 00:47:19 -05:00
resource_cache.py Merge "Fix race condition with enabling SG on many ports at once" 2018-01-27 10:36:37 +00:00
rpc.py Do not call update_device_list in large sets 2019-04-12 20:07:04 +00:00
securitygroups_rpc.py Add accepted egress direct flow 2020-02-25 07:32:29 +08:00