From daf8efee328596f27aad5b53ba560acce6185e53 Mon Sep 17 00:00:00 2001 From: huangjun Date: Tue, 25 Jul 2017 11:14:07 +0000 Subject: [PATCH] qa/tasks/dump_stuck: fix dump_stuck test bug Test cluster with 2 osds, stop osd.0, if osd.1 report the pg stats during pg peering, mon will record pg state to 'peering',then stop osd.1, finally the pg state will stuck in 'stale+peering', which is unexpected. Let's wait_for_active() after stop osd.0. Signed-off-by: huangjun --- qa/tasks/dump_stuck.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/tasks/dump_stuck.py b/qa/tasks/dump_stuck.py index 5d467512ce1..39429d2c348 100644 --- a/qa/tasks/dump_stuck.py +++ b/qa/tasks/dump_stuck.py @@ -100,6 +100,7 @@ def task(ctx, config): log.info('stopping first osd') manager.kill_osd(0) manager.mark_down_osd(0) + manager.wait_for_active(timeout) log.info('waiting for all to be unclean') starttime = time.time()