]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
resolve_stuck_peering: reset stats while looping
authorSamuel Just <sjust@redhat.com>
Fri, 20 May 2016 20:47:23 +0000 (13:47 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 20 May 2016 20:47:23 +0000 (13:47 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
tasks/resolve_stuck_peering.py

index 6a94468b80e4cf542c0577bd4efcdd65b36d5a7b..3c7bb9eca5c79d57db6f5806eaa5b4ce6e920e2a 100644 (file)
@@ -90,6 +90,7 @@ def task(ctx, config):
     while 'down' not in stats['state']:
         assert time.time() - start < timeout, \
             'failed to reach down state before timeout expired'
+        stats = manager.get_single_pg_stats(pgstr)
 
     #mark primary as lost
     manager.raw_cluster_cmd('osd', 'lost', '%d' % primary,\