From c922404a03c379ebf0456c8c59286e57a7f84015 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 19 Dec 2016 21:55:54 -0500 Subject: [PATCH] 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 --- qa/tasks/osd_backfill.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/tasks/osd_backfill.py b/qa/tasks/osd_backfill.py index f0bba7963eed9..dbed30fd41228 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') -- 2.39.5