From 4e399da7007244d13cc4cbbeceebc222273217a2 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 4 Aug 2011 15:19:13 -0700 Subject: [PATCH] Log connections to targets This way you can tell which machines have problems in case of an error. --- teuthology/task/internal.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 3391a6d0aa029..65953754a418a 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -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']): -- 2.39.5