From: Kefu Chai Date: Wed, 12 Apr 2017 09:31:52 +0000 (+0800) Subject: qa/workunits/ceph-helpers: do not error out if is_clean X-Git-Tag: v12.0.2~79^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14468%2Fhead;p=ceph.git qa/workunits/ceph-helpers: do not error out if is_clean it would be a race otherwise, because we cannot be sure that the cluster pgs are not all clean or not when run_osd() returns, but we can be sure that they are expected to active+clean after a while. that's what wait_for_clean() does. Signed-off-by: Kefu Chai --- diff --git a/qa/workunits/ceph-helpers.sh b/qa/workunits/ceph-helpers.sh index c43a369c717b..9863668de755 100755 --- a/qa/workunits/ceph-helpers.sh +++ b/qa/workunits/ceph-helpers.sh @@ -1163,7 +1163,6 @@ function test_is_clean() { run_mon $dir a --osd_pool_default_size=1 || return 1 run_mgr $dir x || return 1 run_osd $dir 0 || return 1 - ! is_clean || return 1 wait_for_clean || return 1 is_clean || return 1 teardown $dir || return 1