mirror of
https://github.com/ceph/ceph
synced 2025-01-04 10:12:30 +00:00
resolve_stuck_peering: reset stats while looping
Signed-off-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
parent
95ba831a3b
commit
6611842d50
@ -90,6 +90,7 @@ def task(ctx, config):
|
|||||||
while 'down' not in stats['state']:
|
while 'down' not in stats['state']:
|
||||||
assert time.time() - start < timeout, \
|
assert time.time() - start < timeout, \
|
||||||
'failed to reach down state before timeout expired'
|
'failed to reach down state before timeout expired'
|
||||||
|
stats = manager.get_single_pg_stats(pgstr)
|
||||||
|
|
||||||
#mark primary as lost
|
#mark primary as lost
|
||||||
manager.raw_cluster_cmd('osd', 'lost', '%d' % primary,\
|
manager.raw_cluster_cmd('osd', 'lost', '%d' % primary,\
|
||||||
|
Loading…
Reference in New Issue
Block a user