]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
ceph: wait_for_osds_up
authorSage Weil <sage@inktank.com>
Tue, 23 Jul 2013 23:55:33 +0000 (16:55 -0700)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 18:43:06 +0000 (11:43 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 13aca3b7ade24451584cd566412f087d47e58f44)

Conflicts:

teuthology/task/ceph.py

teuthology/task/ceph.py

index 7fab0adf1f9333f15f25cf3306fedb0268b1dfbb..db48b16e4e16797071bdab2d03581931207d9848 100644 (file)
@@ -922,6 +922,15 @@ def healthy(ctx, config):
         remote=mon0_remote,
         )
 
+def wait_for_osds_up(ctx, config):
+    log.info('Waiting until ceph osds are all up...')
+    firstmon = teuthology.get_first_mon(ctx, config)
+    (mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys()
+    teuthology.wait_until_osds_up(
+        ctx,
+        cluster=ctx.cluster,
+        remote=mon0_remote
+        )
 
 @contextlib.contextmanager
 def restart(ctx, config):