]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
skip firewall config skip-firewall
authorshylesh kumar <shylesh.mohan@gmail.com>
Sun, 27 Jan 2019 21:06:38 +0000 (16:06 -0500)
committershylesh kumar <shylesh.mohan@gmail.com>
Wed, 30 Jan 2019 03:46:23 +0000 (22:46 -0500)
Signed-off-by: shylesh kumar <shylesh.mohan@gmail.com>
teuthology/task/ceph_ansible.py

index 79b46e8dd9396e19961737ae2717adbfc97684f8..412b6b9d691994401e328452361095da210dbbaa 100644 (file)
@@ -130,11 +130,30 @@ class CephAnsible(Task):
                          testing
         """
 
+       for remote, roles in self.ctx.cluster.remotes.iteritems():
+           cmd = [
+               'sudo',
+               'systemctl',
+               'enable',
+               'firewalld',
+           ]
+           proc = remote.run(
+               args=cmd,
+               stdout=StringIO(),
+           )
+           if not proc.stdout == None:
+               out = proc.stdout.getvalue()
+           elif not proc.stderr == None:
+               out = proc.stderr.getvalue()
+           else:
+               log.info("No output from systemctl enable firewalld")
+           log.info(out)
+
         args = [
             'ANSIBLE_STDOUT_CALLBACK=debug',
             'ansible-playbook', '-vv',
             '-e', 'check_firewall=false',
-            '-i', 'inven.yml', 'site.yml'
+            '-i', 'inven.yml', 'site.yml',
         ]
         log.debug("Running %s", args)
         # If there is an installer.0 node, use that for the installer.