]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/standalone/scrub/osd-scrub-repair: fix grep pattern
authorSage Weil <sage@redhat.com>
Fri, 25 Aug 2017 13:45:51 +0000 (09:45 -0400)
committerSage Weil <sage@redhat.com>
Fri, 25 Aug 2017 15:03:44 +0000 (11:03 -0400)
PGMap shows

    ss << pg_sum.stats.sum.num_objects_unfound
       << "/" << pg_sum.stats.sum.num_objects << " objects unfound (" << b << "%)";

but we were grepping for "1/1 unfound" instead of "1/1 objects
unfound".

Introduced by fe81b7e3a5034ce855303f93f3e413f3f2dc74a8.

Fixes: http://tracker.ceph.com/issues/21127
Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/scrub/osd-scrub-repair.sh

index 8d58c584595f4ad544187f9e0cebba3682481268..2aaaebd6e9701f1d7b6b3368c6be9c8811bce266 100755 (executable)
@@ -374,11 +374,11 @@ 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 unfound" && break
+       ceph -s | grep "1/1 objects unfound" && break
        sleep 1
     done
     ceph -s|grep "4 osds: 4 up, 4 in" || return 1
-    ceph -s|grep "1/1 unfound" || return 1
+    ceph -s|grep "1/1 objects unfound" || return 1
 
     teardown $dir || return 1
 }