mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
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:
parent
0772593632
commit
b5570238b6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user