From: Sage Weil Date: Sat, 9 Mar 2019 00:23:48 +0000 (-0600) Subject: qa/standalone/scrub/osd-scrub-repair: fix unfound grep X-Git-Tag: v14.1.1~8^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=10b9626ea7b09e7c124067a2ce08a76eea073c9c;p=ceph-ci.git qa/standalone/scrub/osd-scrub-repair: fix unfound grep It's now "1/2 unfound": 1/2 objects unfound (50.000%) ..presumably due to the rbd pool init creating the rbd_directory. Signed-off-by: Sage Weil --- diff --git a/qa/standalone/scrub/osd-scrub-repair.sh b/qa/standalone/scrub/osd-scrub-repair.sh index 759f436181f..9f285d5cd79 100755 --- a/qa/standalone/scrub/osd-scrub-repair.sh +++ b/qa/standalone/scrub/osd-scrub-repair.sh @@ -384,12 +384,12 @@ function unfound_erasure_coded() { # # it may take a bit to appear due to mon/mgr asynchrony for f in `seq 1 60`; do - ceph -s | grep "1/1 objects unfound" && break + ceph -s | grep "1/2 objects unfound" && break sleep 1 done ceph -s|grep "4 up" || return 1 ceph -s|grep "4 in" || return 1 - ceph -s|grep "1/1 objects unfound" || return 1 + ceph -s|grep "1/2 objects unfound" || return 1 teardown $dir || return 1 }