From 07ddeb24c7164f249a889d1a14255b6794600961 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 16 May 2017 17:25:04 -0400 Subject: [PATCH] qa/workunites/ceph-helpers.sh: do not bail when num_pg==0 Right after the cluster is created when the first mgr report hasn't come in yet we will report 0 pgs. Signed-off-by: Sage Weil --- qa/workunits/ceph-helpers.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qa/workunits/ceph-helpers.sh b/qa/workunits/ceph-helpers.sh index 0bb099b205f3b..fee18dc4d10c2 100755 --- a/qa/workunits/ceph-helpers.sh +++ b/qa/workunits/ceph-helpers.sh @@ -1258,7 +1258,10 @@ function wait_for_clean() { local cur_active_clean local -a delays=($(get_timeout_delays $TIMEOUT .1)) local -i loop=0 - test $(get_num_pgs) != 0 || return 1 + + while test $(get_num_pgs) == 0 ; do + sleep 1 + done while true ; do # Comparing get_num_active_clean & get_num_pgs is used to determine -- 2.39.5