From 0372924807a5e5c880574c6cbf7f88733ac67d79 Mon Sep 17 00:00:00 2001 From: Shilpa Jagannath Date: Thu, 17 Jan 2019 11:58:21 +0530 Subject: [PATCH] firewalld workaround --- 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 fa148c978..3e0eeecae 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -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=[ -- 2.47.3