]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph.py: debug which pgs aren't scrubbing 13649/head
authorSage Weil <sage@redhat.com>
Fri, 24 Feb 2017 16:31:03 +0000 (11:31 -0500)
committerSage Weil <sage@redhat.com>
Sat, 25 Feb 2017 04:07:34 +0000 (23:07 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 6c2a534dfb36e7d85113e0b25cc5d8d3e8fa80f7..e6ff903fa14327530b1a760987d52ffd32514c9d 100644 (file)
@@ -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