]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
CephLab: reconnect to remotes after playbook runs paramiko
authorZack Cerza <zack@redhat.com>
Fri, 17 Jul 2015 20:01:57 +0000 (14:01 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 17 Jul 2015 22:00:20 +0000 (16:00 -0600)
To take advantage of the updated ssh_config shipped by the testnodes
role

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/ansible.py

index 405eadfb22b93a99d3b6a1903611207dbfdd380d..1c71fb6980ec89370b93d801b6124d2c4e2d8848 100644 (file)
@@ -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