From: Sage Weil Date: Tue, 20 Dec 2016 02:55:54 +0000 (-0500) Subject: qa/tasks/osd_backfill.py: wait for osd.[12] to start X-Git-Tag: v11.1.1~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12577%2Fhead;p=ceph.git qa/tasks/osd_backfill.py: wait for osd.[12] to start ...before sending a tell command. Otherwise osd.2 might start without 1, the io unblocks, and the tell fails because osd.1 is still down. Fixes: http://tracker.ceph.com/issues/18303 Signed-off-by: Sage Weil --- diff --git a/qa/tasks/osd_backfill.py b/qa/tasks/osd_backfill.py index f0bba7963eed..dbed30fd4122 100644 --- a/qa/tasks/osd_backfill.py +++ b/qa/tasks/osd_backfill.py @@ -91,6 +91,10 @@ def task(ctx, config): err = p.wait() log.info('err is %d' % err) + # wait for osd.1 and osd.2 to be up + manager.wait_till_osd_is_up(1) + manager.wait_till_osd_is_up(2) + # cluster must recover manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats') manager.raw_cluster_cmd('tell', 'osd.2', 'flush_pg_stats')