Skip to content

Commit

Permalink
qa/workunits/cephtool/test.sh: fix 'osd thrash' test
Browse files Browse the repository at this point in the history
- fix the wait check for osds to come back up
- make sure they get marked back in, too

Signed-off-by: Sage Weil <[email protected]>
Reviewed-by: Dan Mick <[email protected]>
  • Loading branch information
Sage Weil committed Mar 7, 2014
1 parent 2075477 commit 1c8c618
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qa/workunits/cephtool/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c8c618

Please sign in to comment.