]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerNathan Cutler <ncutler@suse.com>
Mon, 3 Jul 2017 07:56:19 +0000 (09:56 +0200)
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>
(cherry picked from commit 6cb4503a40ae4ebee5690fda024cae8d1a506bce)

qa/workunits/ceph-helpers.sh

index e0896ef0b9f97a5692b4e013f9bc6c3c45aa039b..d0e7c005cb2b0c6c701f25fa527945243f55a929 100755 (executable)
@@ -1066,7 +1066,6 @@ function test_is_clean() {
     setup $dir || return 1
     run_mon $dir a --osd_pool_default_size=1 || 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