From: Sage Weil Date: Wed, 10 Nov 2021 17:27:53 +0000 (-0600) Subject: qa/tasks/radosbench: default clients to all clients (not client.0) X-Git-Tag: v17.1.0~367^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7bf9242c4edbbdec2dc8e4902b31e9058a22d9e;p=ceph.git qa/tasks/radosbench: default clients to all clients (not client.0) Signed-off-by: Sage Weil --- diff --git a/qa/tasks/radosbench.py b/qa/tasks/radosbench.py index 0804840c592..3a5aee2e265 100644 --- a/qa/tasks/radosbench.py +++ b/qa/tasks/radosbench.py @@ -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):