]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
firewalld workaround rh-firewall
authorShilpa Jagannath <smanjara@redhat.com>
Thu, 17 Jan 2019 06:28:21 +0000 (11:58 +0530)
committerShilpa Jagannath <smanjara@redhat.com>
Thu, 17 Jan 2019 06:28:21 +0000 (11:58 +0530)
teuthology/task/ceph_ansible.py

index fa148c978b45d5fba0bbdd357ae8079a92aa0f8e..3e0eeecaecfbb79c20c6b1ae910769cb1adf8288 100644 (file)
@@ -137,6 +137,14 @@ class CephAnsible(Task):
         self.each_cluster.remotes = stripped_role
         log.info('updated cluster {}'.format(self.each_cluster))
 
+    def start_firewalld(self):
+
+        for remote, roles in self.each_cluster.remotes.iteritems():
+            cmd = 'sudo service firewalld start'
+            remote.run(
+                args=cmd, stdout=StringIO(),
+            )
+
     def execute_playbook(self):
         """
         Execute ansible-playbook
@@ -511,6 +519,7 @@ class CephAnsible(Task):
         ])
         self._copy_and_print_config()
         self._generate_client_config()
+        self.start_firewalld()
         str_args = ' '.join(args)
         ceph_installer.run(
             args=[