]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: fixes for cluster name on cleanup
authorCasey Bodley <cbodley@redhat.com>
Sat, 22 Apr 2017 15:33:44 +0000 (15:33 +0000)
committerCasey Bodley <cbodley@redhat.com>
Wed, 17 May 2017 18:48:55 +0000 (14:48 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/rgw.py

index 5a5ed094da62c86b13d5eae4377e88a7a17bf096..1e57045f7fc273527685bea11307d8e8420eafd9 100644 (file)
@@ -221,6 +221,8 @@ exec radosgw -f -n {client_with_id} --cluster {cluster_name} -k /etc/ceph/{clien
     finally:
         log.info('Removing apache config...')
         for client in clients_to_create_as:
+            cluster_name, daemon_type, client_id = teuthology.split_role(client)
+            client_with_cluster = '.'.join((cluster_name, daemon_type, client_id))
             ctx.cluster.only(client).run(
                 args=[
                     'rm',
@@ -356,14 +358,17 @@ def start_rgw(ctx, config, on_client = None, except_client = None):
     try:
         yield
     finally:
-        teuthology.stop_daemons_of_type(ctx, 'rgw')
         for client in config.iterkeys():
+            cluster_name, daemon_type, client_id = teuthology.split_role(client)
+            client_with_id = daemon_type + '.' + client_id
+            client_with_cluster = cluster_name + '.' + client_with_id
+            ctx.daemons.get_daemon('rgw', client_with_id, cluster_name).stop()
             ctx.cluster.only(client).run(
                 args=[
                     'rm',
                     '-f',
-                    '{tdir}/rgw.opslog.{client_with_cluster}.sock'.format(tdir=testdir,
-                                                             client_with_cluster=client_with_cluster),
+                    '{tdir}/rgw.opslog.{client}.sock'.format(tdir=testdir,
+                                                             client=client_with_cluster),
                     ],
                 )