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 <huangjun@xsky.com>
This commit is contained in:
huangjun 2017-07-25 11:14:07 +00:00
parent 62b6d2d923
commit daf8efee32

View File

@ -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()