]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/scrub/osd-scrub-repair: fix unfound grep
authorSage Weil <sage@redhat.com>
Sat, 9 Mar 2019 00:23:48 +0000 (18:23 -0600)
committerSage Weil <sage@redhat.com>
Sat, 9 Mar 2019 00:23:48 +0000 (18:23 -0600)
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 <sage@redhat.com>
qa/standalone/scrub/osd-scrub-repair.sh

index 759f436181ffe38e72f07470c31dbaa583bf1320..9f285d5cd79d1f294c882f7920efcd4be85a6535 100755 (executable)
@@ -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
 }