From 0d80c8866735dd3fc3f321b14a3e53e82c429dbe Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 26 May 2017 09:23:13 -0400 Subject: [PATCH] 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 --- qa/tasks/ceph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 4eb49fce88463..56547bdfb9f98 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -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) -- 2.39.5