]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: add cluster name to path when s3tests scans rgw log 14845/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 27 Apr 2017 18:46:06 +0000 (14:46 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 27 Apr 2017 18:48:40 +0000 (14:48 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/s3tests.py

index 4fbea2f64c8eb40ffd3827a736ebcbd7c7560417..762eff267586a64d6ae48d63fb434b6991c09823 100644 (file)
@@ -381,13 +381,15 @@ def scan_for_leaked_encryption_keys(ctx, config):
         for client, client_config in config.iteritems():
             if not client_config.get('scan_for_encryption_keys', True):
                 continue
+            cluster_name, daemon_type, client_id = teuthology.split_role(client)
+            client_with_cluster = '.'.join((cluster_name, daemon_type, client_id))
             (remote,) = ctx.cluster.only(client).remotes.keys()
             proc = remote.run(
                 args=[
                     'grep',
                     '--binary-files=text',
                     s3test_customer_key,
-                    '/var/log/ceph/rgw.{client}.log'.format(client=client),
+                    '/var/log/ceph/rgw.{client}.log'.format(client=client_with_cluster),
                 ],
                 wait=False,
                 check_status=False,