From e7bf9242c4edbbdec2dc8e4902b31e9058a22d9e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 10 Nov 2021 11:27:53 -0600 Subject: [PATCH] qa/tasks/radosbench: default clients to all clients (not client.0) Signed-off-by: Sage Weil --- qa/tasks/radosbench.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qa/tasks/radosbench.py b/qa/tasks/radosbench.py index 0804840c5921a..3a5aee2e265b0 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): -- 2.39.5