From f777d849e78295530469c8cd85abd15175713aa8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 24 Feb 2017 11:31:03 -0500 Subject: [PATCH] qa/tasks/ceph.py: debug which pgs aren't scrubbing Signed-off-by: Sage Weil --- qa/tasks/ceph.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 6c2a534dfb36e..e6ff903fa1432 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -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 -- 2.39.5