]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: Add wait_for_clean() check prior to initiating scrubbing. 40415/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 25 Mar 2021 12:37:49 +0000 (18:07 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Thu, 25 Mar 2021 16:31:19 +0000 (22:01 +0530)
Fixes: https://tracker.ceph.com/issues/49983
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
qa/tasks/ceph.py

index a13f06c73173baf5214aa11eec313838f935b32c..9894addd7f1449acb1f10441bee77a1af3100ce3 100644 (file)
@@ -1899,6 +1899,9 @@ def task(ctx, config):
             ctx.managers[config['cluster']].stop_pg_num_changes()
 
             if config.get('wait-for-scrub', True):
+                # wait for pgs to become active+clean in case any
+                # recoveries were triggered since the last health check
+                ctx.managers[config['cluster']].wait_for_clean()
                 osd_scrub_pgs(ctx, config)
 
             # stop logging health to clog during shutdown, or else we generate