From db7cb6450b946371d69b540990310cdd23a6b1cf Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 2 Nov 2021 09:43:42 -0400 Subject: [PATCH] Temporarily stop firewalld and add pause to try to wait for address assignment --- confluent_osdeploy/common/opt/confluent/bin/confignet | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/confluent_osdeploy/common/opt/confluent/bin/confignet b/confluent_osdeploy/common/opt/confluent/bin/confignet index 367f94b8..f772b926 100644 --- a/confluent_osdeploy/common/opt/confluent/bin/confignet +++ b/confluent_osdeploy/common/opt/confluent/bin/confignet @@ -196,6 +196,10 @@ class NetworkManager(object): if __name__ == '__main__': + havefirewall = subprocess.call(['systemctl', 'status', 'firewalld']) + havefirewall = havefirewall == 0 + if havefirewall: + subprocess.check_call(['systemctl', 'stop', 'firewalld']) tmpllas = add_missing_llas() await_tentative() idxmap, devtypes = map_idx_to_name() @@ -238,4 +242,7 @@ if __name__ == '__main__': nm = NetworkManager(devtypes) for netn in netname_to_interfaces: nm.apply_configuration(netname_to_interfaces[netn]) + if havefirewall: + subprocess.check_call(['systemctl', 'start', 'firewalld']) + await_tentative()