]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/dump_stuck: fix dump_stuck test bug 16559/head
authorhuangjun <huangjun@xsky.com>
Tue, 25 Jul 2017 11:14:07 +0000 (11:14 +0000)
committerhuangjun <huangjun@xsky.com>
Tue, 25 Jul 2017 11:14:07 +0000 (11:14 +0000)
  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>
qa/tasks/dump_stuck.py

index 5d467512ce1d2e3739fcf80a7ed1d69ff3bc50ec..39429d2c348193d1505e453a214c99af7f721989 100644 (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()