qa/standalone/scrub/osd-scrub-repair: fix grep pattern

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 fe81b7e3a5.

Fixes: http://tracker.ceph.com/issues/21127
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-08-25 09:45:51 -04:00
parent 80a5556fac
commit 84465bf5a5

View File

@ -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
}