]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephtool/test.sh: fix 'osd thrash' test
authorSage Weil <sage@inktank.com>
Fri, 7 Mar 2014 23:21:30 +0000 (15:21 -0800)
committerSage Weil <sage@inktank.com>
Fri, 7 Mar 2014 23:21:38 +0000 (15:21 -0800)
- fix the wait check for osds to come back up
- make sure they get marked back in, too

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
qa/workunits/cephtool/test.sh

index 21b37f8a71de91b17cf43529de2e60eb2fe72e13..dfe9946416bc1d1a895d4e9d103ba100e62336b0 100755 (executable)
@@ -285,14 +285,19 @@ for ((i=0; i < 100; i++)); do
 done
 
 ceph osd thrash 10
+# make sure everything gets back up+in.
 for ((i=0; i < 100; i++)); do
-       if ceph osd dump | grep 'down in'; then
+       if ceph osd dump | grep ' down '; then
                echo "waiting for osd(s) to come back up"
                sleep 10
        else
                break
        fi
 done
+# if you have more osds than this you are on your own
+for f in `seq 0 31`; do
+    ceph osd in $f || true
+done
 
 ceph osd dump | grep 'osd.0 up'
 ceph osd find 1