]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/radosbench: default clients to all clients (not client.0)
authorSage Weil <sage@newdream.net>
Wed, 10 Nov 2021 17:27:53 +0000 (11:27 -0600)
committerSage Weil <sage@newdream.net>
Thu, 25 Nov 2021 13:52:55 +0000 (07:52 -0600)
Signed-off-by: Sage Weil <sage@newdream.net>
qa/tasks/radosbench.py

index 0804840c5921a5456f3f61ca673fc0c20cf15732..3a5aee2e265b0cfd03dfab30c4d91809f4c9ac1d 100644 (file)
@@ -53,11 +53,12 @@ def task(ctx, config):
     runtype = config.get('type', 'write')
 
     create_pool = config.get('create_pool', True)
-    for role in config.get('clients', ['client.0']):
+    for role in config.get(
+            'clients',
+            list(map(lambda x: 'client.' + x,
+                     teuthology.all_roles_of_type(ctx.cluster, 'client')))):
         assert isinstance(role, str)
-        PREFIX = 'client.'
-        assert role.startswith(PREFIX)
-        id_ = role[len(PREFIX):]
+        (_, id_) = role.split('.', 1)
         (remote,) = ctx.cluster.only(role).remotes.keys()
 
         if config.get('ec_pool', False):