qa/tasks: Add wait_for_clean() check prior to initiating scrubbing.

Fixes: https://tracker.ceph.com/issues/49983
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
This commit is contained in:
Sridhar Seshasayee 2021-03-25 18:07:49 +05:30
parent 0772593632
commit b5570238b6

View 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