]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: if no osd roles, --all-available-devices
authorSage Weil <sage@newdream.net>
Tue, 5 Oct 2021 16:37:58 +0000 (11:37 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 13 Dec 2021 08:51:51 +0000 (09:51 +0100)
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit d3c9486ed9406d09904dd542eae05680d5f09498)

qa/tasks/cephadm.py

index 57ede18136cf46ce7e0818c6773c6ae6e2db0fd5..d3561338c86961c48f67789c230ab69c54dd4860 100644 (file)
@@ -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