]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fixes ceph-ansible timeouts
authorShilpa Jagannath <smanjara@redhat.com>
Fri, 15 Feb 2019 10:58:04 +0000 (16:28 +0530)
committerShilpa Jagannath <smanjara@redhat.com>
Fri, 15 Feb 2019 10:58:04 +0000 (16:28 +0530)
Start firewalld before starting ceph-ansible task

teuthology/task/ceph_ansible.py

index 5a07735586ef64c03922cf60d2e6eeb6d1097338..311c47247d316d46331eac023d44ca3b8b86ee56 100644 (file)
@@ -143,6 +143,14 @@ class CephAnsible(Task):
             self.each_cluster = self.ctx.cluster
         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
@@ -525,6 +533,7 @@ class CephAnsible(Task):
         ])
         self._copy_and_print_config()
         self._generate_client_config()
+        self.start_firewalld()
         str_args = ' '.join(args)
         ceph_installer.run(
             args=[