From: Sage Weil Date: Fri, 24 Feb 2017 16:31:03 +0000 (-0500) Subject: qa/tasks/ceph.py: debug which pgs aren't scrubbing X-Git-Tag: v12.0.1~268^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13649%2Fhead;p=ceph.git qa/tasks/ceph.py: debug which pgs aren't scrubbing Signed-off-by: Sage Weil --- diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 6c2a534dfb3..e6ff903fa14 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