From 970a2767da94a4539052eb21e795ef98b1639a2a Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 17 Jul 2015 14:01:57 -0600 Subject: [PATCH] CephLab: reconnect to remotes after playbook runs To take advantage of the updated ssh_config shipped by the testnodes role Signed-off-by: Zack Cerza --- teuthology/task/ansible.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/teuthology/task/ansible.py b/teuthology/task/ansible.py index 405eadfb2..1c71fb698 100644 --- a/teuthology/task/ansible.py +++ b/teuthology/task/ansible.py @@ -314,6 +314,13 @@ class CephLab(Ansible): 'ceph-cm-ansible.git') super(CephLab, self).__init__(ctx, config) + def begin(self): + super(CephLab, self).begin() + remotes = self.cluster.remotes.keys() + log.debug("Reconnecting to %s", remotes) + for remote in remotes: + remote.reconnect() + task = Ansible cephlab = CephLab -- 2.47.3