neutron/neutron
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
..
agent Fix deletion of rfp interfaces when router is re-enabled 2021-03-17 08:46:23 +00:00
api Revert "[Security] fix allowed-address-pair 0.0.0.0/0 issue" 2020-11-17 14:34:08 +00:00
cmd Fix calling of add_tunnel_port method from sanity checks module 2020-12-03 08:36:39 +00:00
common Add trunk subports to be one of dvr serviced device owners 2020-04-06 11:38:08 +00:00
conf Add config option ``http_retries`` 2020-07-09 10:18:46 +00:00
core_extensions use qos constants from neutron-lib 2017-10-26 19:57:19 +00:00
db Merge "Revert "[Security] fix allowed-address-pair 0.0.0.0/0 issue"" into stable/queens 2020-11-18 01:39:28 +00:00
debug Change ip_lib network namespace code to use pyroute2 2017-10-04 21:09:28 +00:00
extensions Improve invalid port ranges error message 2019-03-21 10:18:01 -04:00
hacking hacking: Remove dead code 2017-07-19 13:43:44 +02:00
ipam Update the processing of assigned addresses when assigning addresses 2020-06-19 10:10:41 +00:00
locale Imported Translations from Zanata 2018-03-14 06:20:49 +00:00
notifiers Add config option ``http_retries`` 2020-07-09 10:18:46 +00:00
objects Improve VLAN allocations synchronization 2020-04-23 16:15:17 +00:00
pecan_wsgi Set DB retry for quota_enforcement pecan_wsgi hook 2019-12-16 11:16:23 +00:00
plugins Fix removal of dvr-src mac flows when non-gateway port on router is deleted 2021-03-05 09:56:21 +00:00
privileged Replace ctype.CDLL by ctypes.PyDLL in linux.ip_lib 2020-09-22 08:54:47 +00:00
quota Set DB retry for quota_enforcement pecan_wsgi hook 2019-12-16 11:16:23 +00:00
scheduler Fetch specific columns rather than full ORM entities 2018-09-27 19:12:37 +02:00
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-20 09:39:20 +00:00
services Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 15:14:40 +02:00
tests Fix deletion of rfp interfaces when router is re-enabled 2021-03-17 08:46:23 +00:00
__init__.py
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Merge "Remove deprecated cache_url" 2018-01-03 06:35:59 +00:00
policy.py Treat networks shared by RBAC in same way as shared with all tenants 2019-06-28 06:05:44 +00:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-20 09:39:20 +00:00
version.py
worker.py replace WorkerSupportServiceMixin with neutron-lib's WorkerBase 2017-06-14 06:56:48 -06:00
wsgi.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-20 09:39:20 +00:00