mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
qa/tasks/ceph.py: debug which pgs aren't scrubbing
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
292306cdfb
commit
f777d849e7
@ -1075,14 +1075,15 @@ def osd_scrub_pgs(ctx, config):
|
||||
loop = True
|
||||
while loop:
|
||||
stats = manager.get_pg_stats()
|
||||
timez = [stat['last_scrub_stamp'] for stat in stats]
|
||||
timez = [(stat['pgid'],stat['last_scrub_stamp']) for stat in stats]
|
||||
loop = False
|
||||
thiscnt = 0
|
||||
for tmval in timez:
|
||||
for (pgid, tmval) in timez:
|
||||
pgtm = time.strptime(tmval[0:tmval.find('.')], '%Y-%m-%d %H:%M:%S')
|
||||
if pgtm > check_time_now:
|
||||
thiscnt += 1
|
||||
else:
|
||||
log.info('pgid %s last_scrub_stamp %s %s <= %s', pgid, tmval, pgtm, check_time_now)
|
||||
loop = True
|
||||
if thiscnt > prev_good:
|
||||
prev_good = thiscnt
|
||||
|
Loading…
Reference in New Issue
Block a user