[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.
Closes-Bug: #1945215
Change-Id: I426602514805d728f8cd78e42f2b0979b2101089
(cherry picked from commit f18edfdf450179f6bc8a47f3b143f2701bd93e0e)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/812282 /opendev. org/openstack/ neutron/ commit/ d4ddc9954de2728 ebdb069b5d1df71 e620144659
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit d4ddc9954de2728 ebdb069b5d1df71 e620144659
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.
Closes-Bug: #1945215 28f8cd78e42f2b0 979b2101089 6bc8a47f3b143f2 701bd93e0e)
Change-Id: I426602514805d7
(cherry picked from commit f18edfdf450179f