From: Zack Cerza Date: Fri, 17 Jul 2015 20:01:57 +0000 (-0600) Subject: CephLab: reconnect to remotes after playbook runs X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fparamiko;p=teuthology.git 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 --- 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