]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: replace wait_for_osds_up with manager.wait_for_all_osds_up
authorSage Weil <sage@redhat.com>
Tue, 12 Nov 2019 22:46:51 +0000 (22:46 +0000)
committerSage Weil <sage@redhat.com>
Thu, 21 Nov 2019 16:46:54 +0000 (10:46 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 98eee696cddfcec45256e9d4c539b01cddbff83e..2baca41c4fa749d022e1d7f69248809550655bae 100644 (file)
@@ -1487,24 +1487,6 @@ def healthy(ctx, config):
         ceph_fs.wait_for_daemons(timeout=300)
 
 
-def wait_for_osds_up(ctx, config):
-    """
-    Wait for all osd's to come up.
-
-    :param ctx: Context
-    :param config: Configuration
-    """
-    log.info('Waiting until ceph osds are all up...')
-    cluster_name = config.get('cluster', 'ceph')
-    firstmon = teuthology.get_first_mon(ctx, config, cluster_name)
-    (mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys()
-    teuthology.wait_until_osds_up(
-        ctx,
-        cluster=ctx.cluster,
-        remote=mon0_remote
-    )
-
-
 def wait_for_mon_quorum(ctx, config):
     """
     Check renote ceph status until all monitors are up.
@@ -1630,7 +1612,7 @@ def restart(ctx, config):
             healthy(ctx=ctx, config=dict(cluster=cluster))
     if config.get('wait-for-osds-up', False):
         for cluster in clusters:
-            wait_for_osds_up(ctx=ctx, config=dict(cluster=cluster))
+            ctx.managers[cluster].wait_for_all_osds_up()
     yield