]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Log connections to targets
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 4 Aug 2011 22:19:13 +0000 (15:19 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 5 Aug 2011 01:25:43 +0000 (18:25 -0700)
This way you can tell which machines have problems in case of an
error.

teuthology/task/internal.py

index 3391a6d0aa029941d1db1a2e54a0f4cfa5826646..65953754a418a3fd43e5103670fb19bb1f0a49df 100644 (file)
@@ -96,10 +96,12 @@ def connect(ctx, config):
     log.info('Opening connections...')
     from orchestra import connection, remote
     import orchestra.cluster
-
-    remotes = [remote.Remote(name=t,
-                             ssh=connection.connect(user_at_host=t, host_key=key))
-               for t, key in ctx.config['targets'].iteritems()]
+    remotes = []
+    for t, key in ctx.config['targets'].iteritems():
+        log.debug('connecting to %s', t)
+        remotes.append(
+            remote.Remote(name=t,
+                          ssh=connection.connect(user_at_host=t, host_key=key)))
     ctx.cluster = orchestra.cluster.Cluster()
     if 'roles' in ctx.config:
         for rem, roles in zip(remotes, ctx.config['roles']):