]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: recovery-unfound-found test needs to account for correct misplaced calculations 19850/head
authorDavid Zafman <dzafman@redhat.com>
Tue, 16 Jan 2018 18:44:29 +0000 (10:44 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 16 Jan 2018 18:52:21 +0000 (10:52 -0800)
The test expected HEALTH_OK when in a state with misplaced objects therefore HEALTH_WARN

Signed-off-by: David Zafman <dzafman@redhat.com>
qa/suites/rados/singleton-nomsgr/all/recovery-unfound-found.yaml
qa/tasks/ceph.py

index 6d77cc78a4fd668f4767a2825285c0aef5a22a5e..ce0cbd9f04fd06dc7f9105c043b5a69a24e8847d 100644 (file)
@@ -50,4 +50,9 @@ tasks:
       - ceph osd out 0
       - sleep 10
       - ceph osd unset noup
+- ceph.healthy:
+      wait-for-healthy: false # only wait for osds up and pgs clean, ignore misplaced
+- exec:
+    osd.0:
+      - ceph osd in 0
 - ceph.healthy:
index 177fb0d2db2d04dad6d5ca2239d32135751d6552..49e6029c8fc22337a7fa6bb12231d794a183a690 100644 (file)
@@ -1267,12 +1267,13 @@ def healthy(ctx, config):
         log.info('ignoring flush pg stats error, probably testing upgrade: %s', e)
     manager.wait_for_clean()
 
-    log.info('Waiting until ceph cluster %s is healthy...', cluster_name)
-    teuthology.wait_until_healthy(
-        ctx,
-        remote=mon0_remote,
-        ceph_cluster=cluster_name,
-    )
+    if config.get('wait-for-healthy', True):
+        log.info('Waiting until ceph cluster %s is healthy...', cluster_name)
+        teuthology.wait_until_healthy(
+            ctx,
+            remote=mon0_remote,
+            ceph_cluster=cluster_name,
+        )
 
     if ctx.cluster.only(teuthology.is_type('mds', cluster_name)).remotes:
         # Some MDSs exist, wait for them to be healthy