From: Sage Weil Date: Tue, 23 Jul 2013 23:55:33 +0000 (-0700) Subject: ceph: wait_for_osds_up X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a93420c8b5c9fd0eedf6d9f9cd5442471789c40b;p=teuthology.git ceph: wait_for_osds_up Signed-off-by: Sage Weil (cherry picked from commit 13aca3b7ade24451584cd566412f087d47e58f44) Conflicts: teuthology/task/ceph.py --- diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 7fab0adf1..db48b16e4 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -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):