]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
repair_test: Wait for OSDs to come up before proceeding with test
authorDavid Zafman <dzafman@redhat.com>
Sat, 25 Oct 2014 00:02:41 +0000 (17:02 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 7 Nov 2014 06:23:34 +0000 (22:23 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
tasks/repair_test.py

index 340163f8a47f9be3e395214c38801516e70e3417..c99f6edae7d183c3104ac21e2bd628ae68cd7044 100644 (file)
@@ -282,6 +282,12 @@ def task(ctx, config):
             logger=log.getChild('ceph_manager')
             )
 
+    num_osds = teuthology.num_instances_of_type(ctx.cluster, 'osd')
+    log.info('num_osds is %s' % num_osds)
+
+    while len(ctx.manager.get_osd_status()['up']) < num_osds:
+        time.sleep(10)
+
     tests = [
         gen_repair_test_1(mdataerr(ctx), choose_primary(ctx), "scrub"),
         gen_repair_test_1(mdataerr(ctx), choose_replica(ctx), "scrub"),