resolve_stuck_peering: reset stats while looping

Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
Samuel Just 2016-05-20 13:47:23 -07:00
parent 95ba831a3b
commit 6611842d50

View 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,\