]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
radosgw-agent: store radosgw_agent server/port
authorJoe Buck <jbbuck@gmail.com>
Sat, 24 Aug 2013 02:21:13 +0000 (19:21 -0700)
committerJoe Buck <jbbuck@gmail.com>
Wed, 28 Aug 2013 16:00:03 +0000 (09:00 -0700)
Persist the hostname and port number used
by the radosgw-agent http server.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task/radosgw-agent.py

index a6661b480db4b8d79e7c851d7a8598edbe79fa7f..17c206161c030d5aa3fff7bcf89f049a528fc391 100644 (file)
@@ -100,6 +100,8 @@ def run_radosgw_agent(ctx, config):
             in_args.append('--test-server-port')
             in_args.append(str(port))
             log.debug('Starting a sync test server on {client}'.format(client=client))
+            # Stash the radosgw-agent server / port # for use by subsequent tasks 
+            ctx.radosgw_agent.endpoint = (client, str(port))
         else:
             in_args.append('--sync-scope')
             in_args.append(sync_scope)