]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: raise an exception if pgs are not clean
authorSage Weil <sage@redhat.com>
Fri, 26 May 2017 13:23:13 +0000 (09:23 -0400)
committerSage Weil <sage@redhat.com>
Thu, 15 Jun 2017 15:23:18 +0000 (11:23 -0400)
If this happens the preceding test should have cleaned
up (e.g., ceph.healthy:).

Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 4eb49fce884633951963cde7eebc7e5207c037f7..56547bdfb9f981a3116e29a32641ff51f95400c3 100644 (file)
@@ -1044,8 +1044,7 @@ def osd_scrub_pgs(ctx, config):
         log.info("Waiting for all osds to be active and clean.")
         time.sleep(delays)
     if not all_clean:
-        log.info("Scrubbing terminated -- not all pgs were active and clean.")
-        return
+        raise RuntimeError("Scrubbing terminated -- not all pgs were active and clean.")
     check_time_now = time.localtime()
     time.sleep(1)
     all_roles = teuthology.all_roles(ctx.cluster)