From d3c9486ed9406d09904dd542eae05680d5f09498 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 5 Oct 2021 11:37:58 -0500 Subject: [PATCH] qa/tasks/cephadm: if no osd roles, --all-available-devices Signed-off-by: Sage Weil --- qa/tasks/cephadm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 57ede18136cf4..d3561338c8696 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -756,6 +756,11 @@ def ceph_osds(ctx, config): ) cur += 1 + if cur == 0: + _shell(ctx, cluster_name, remote, [ + 'ceph', 'orch', 'apply', 'osd', '--all-available-devices', + ]) + yield finally: pass -- 2.39.5