From 5af5997e0a4c9ac05c548e74aefa3898d3f05105 Mon Sep 17 00:00:00 2001 From: Shilpa Jagannath Date: Fri, 15 Feb 2019 16:28:04 +0530 Subject: [PATCH] Fixes ceph-ansible timeouts Start firewalld before starting ceph-ansible task --- teuthology/task/ceph_ansible.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 5a07735586..311c47247d 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=[ -- 2.39.5