From: Loic Dachary Date: Mon, 29 Sep 2014 11:47:06 +0000 (+0200) Subject: qa/workunits/cephtool/test.sh: fix thrash (ultimate) X-Git-Tag: v0.86~27^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=beade63a17db2e6fc68d1f55332d602f8f7cb93a;p=ceph.git qa/workunits/cephtool/test.sh: fix thrash (ultimate) Keep the osd trash test to ensure it is a valid command but make it a noop by giving it a zero argument (meaning thrash 0 OSD maps). Remove the loops that were added after the command in an attempt to wait for the cluster to recover and not pollute the rest of the tests. Actual testing of osd thrash would require a dedicated cluster because it the side effects are random and it is unnecessarily difficult to ensure they are finished. http://tracker.ceph.com/issues/9620 Fixes: #9620 Signed-off-by: Loic Dachary --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index d7b7ed5a03263..cb62e02f4fc80 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -581,23 +581,7 @@ function test_mon_osd() done ceph osd dump | grep 'osd.0 up' - ceph osd thrash 10 - ceph osd down `seq 0 31` # force everything down so that we can trust up - # make sure everything gets back up+in. - for ((i=0; i < 100; i++)); do - if ceph osd dump | grep ' down '; then - echo "waiting for osd(s) to come back up" - sleep 10 - else - break - fi - done - ! ceph osd dump | grep ' down ' - - # 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 thrash 0 ceph osd dump | grep 'osd.0 up' ceph osd find 1