[DVR] Check if SNAT iptables manager is initialized
Check if SNAT iptables manager is initialized before processing the
IP NAT rules. If the router never had an external GW port, the DVR
GW in the SNAT namespace has not been created and the SNAT iptables
manager has not been initialized.
In this case, the IP NAT rules for centralized FIPs (to be applied
on the SNAT namespace) cannot be set.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/813207 /opendev. org/openstack/ neutron/ commit/ 31f97b5f98ab56d 93ea7d6a11d3d79 c2d7722a50
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 31f97b5f98ab56d 93ea7d6a11d3d79 c2d7722a50
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Mon Sep 27 16:22:45 2021 +0000
[DVR] Check if SNAT iptables manager is initialized
Check if SNAT iptables manager is initialized before processing the
IP NAT rules. If the router never had an external GW port, the DVR
GW in the SNAT namespace has not been created and the SNAT iptables
manager has not been initialized.
In this case, the IP NAT rules for centralized FIPs (to be applied
on the SNAT namespace) cannot be set.
Conflicts:
neutron/ tests/functiona l/agent/ l3/framework. py
Closes-Bug: #1945215 28f8cd78e42f2b0 979b2101089 6bc8a47f3b143f2 701bd93e0e) 1ce50f9e858c928 9984bb8e4b)
Change-Id: I426602514805d7
(cherry picked from commit f18edfdf450179f
(cherry picked from commit b9143c37e06567b