]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/ceph-helpers: do not error out if is_clean
authorKefu Chai <kchai@redhat.com>
Wed, 12 Apr 2017 09:31:52 +0000 (17:31 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 12 Apr 2017 09:32:44 +0000 (17:32 +0800)
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 <kchai@redhat.com>
qa/workunits/ceph-helpers.sh

index c43a369c717b0a24d1c12f3216a525dd38e5bfdd..9863668de755f51a7d791aa55f85d870ab059d5a 100755 (executable)
@@ -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