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