From 6611842d5030fc73e7454fd810a27f6b826504f7 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 20 May 2016 13:47:23 -0700 Subject: [PATCH] resolve_stuck_peering: reset stats while looping Signed-off-by: Samuel Just --- tasks/resolve_stuck_peering.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/resolve_stuck_peering.py b/tasks/resolve_stuck_peering.py index 6a94468b80e..3c7bb9eca5c 100644 --- a/tasks/resolve_stuck_peering.py +++ b/tasks/resolve_stuck_peering.py @@ -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,\