]> 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)
committerSage Weil <sage@newdream.net>
Fri, 8 Oct 2021 21:06:28 +0000 (16:06 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
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