]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: Reducing sleep time for osd to be up
authorErwan Velu <erwan@redhat.com>
Mon, 21 Mar 2016 15:20:25 +0000 (16:20 +0100)
committerErwan Velu <erwan@redhat.com>
Tue, 5 Apr 2016 07:36:25 +0000 (09:36 +0200)
OSDs are taking some time to be up but waiting 10 secs seems execessive
here between two loops. In the worst case, we can be in a situation of
waiting 10secs for nothing as we are just a few microsecs after the osd
is up.

This patch simply reduce the sleep from 10 to 1 seconds.
Signed-off-by: Erwan Velu <erwan@redhat.com>
qa/workunits/cephtool/test.sh

index 4af465f95f54678a8c45e280291698a8ce408e8c..0484c3ce21f1c36959c267bccbca37907da8e04d 100755 (executable)
@@ -1084,10 +1084,10 @@ function test_mon_osd()
   ceph osd down 0
   ceph osd dump | grep 'osd.0 down'
   ceph osd unset noup
-  for ((i=0; i < 100; i++)); do
+  for ((i=0; i < 1000; i++)); do
     if ! ceph osd dump | grep 'osd.0 up'; then
       echo "waiting for osd.0 to come back up"
-      sleep 10
+      sleep 1
     else
       break
     fi