mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
qa/tasks/ceph: raise an exception if pgs are not clean
If this happens the preceding test should have cleaned up (e.g., ceph.healthy:). Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
6fa9d32407
commit
0d80c88667
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user