From 8b0ebe1240809de9b2fc2beb72551604fe359c39 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Sat, 12 Dec 2020 09:30:31 +0800 Subject: [PATCH] qa/tasks: allow none client prefixed node to run the cram Fixes: https://tracker.ceph.com/issues/47439 Signed-off-by: Xiubo Li --- qa/tasks/cram.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cram.py b/qa/tasks/cram.py index 106e5f3262f..85c1a61b9aa 100644 --- a/qa/tasks/cram.py +++ b/qa/tasks/cram.py @@ -134,8 +134,10 @@ def _run_tests(ctx, role): """ assert isinstance(role, str) PREFIX = 'client.' - assert role.startswith(PREFIX) - id_ = role[len(PREFIX):] + if role.startswith(PREFIX): + id_ = role[len(PREFIX):] + else: + id_ = role (remote,) = (ctx.cluster.only(role).remotes.keys()) ceph_ref = ctx.summary.get('ceph-sha1', 'master') -- 2.39.5