]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph: raise exception if scrubs time out
authorSage Weil <sage@redhat.com>
Fri, 26 May 2017 13:24:03 +0000 (09:24 -0400)
committerSage Weil <sage@redhat.com>
Thu, 15 Jun 2017 15:23:18 +0000 (11:23 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 56547bdfb9f981a3116e29a32641ff51f95400c3..7f95bbca65c58bc1f5c0f213287a6c183d9a7e99 100644 (file)
@@ -1073,8 +1073,7 @@ def osd_scrub_pgs(ctx, config):
         else:
             gap_cnt += 1
             if gap_cnt > retries:
-                log.info('Exiting scrub checking -- not all pgs scrubbed.')
-                return
+                raise RuntimeError('Exiting scrub checking -- not all pgs scrubbed.')
         if loop:
             log.info('Still waiting for all pgs to be scrubbed.')
             time.sleep(delays)