From: Shilpa Jagannath Date: Fri, 15 Feb 2019 10:58:04 +0000 (+0530) Subject: Fixes ceph-ansible timeouts X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5af5997e0a4c9ac05c548e74aefa3898d3f05105;p=teuthology.git Fixes ceph-ansible timeouts Start firewalld before starting ceph-ansible task --- diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 5a0773558..311c47247 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -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=[