Merge pull request #8856 from wojtek-t/increase_limits

Increase timeout for cluster validation and extend logging
This commit is contained in:
Piotr Szczesniak 2015-05-27 14:40:27 +02:00
commit 0ede6dc421

View File

@ -45,13 +45,15 @@ while true; do
if (( ${found} == "${NUM_MINIONS}" )) && (( ${ready} == "${NUM_MINIONS}")); then if (( ${found} == "${NUM_MINIONS}" )) && (( ${ready} == "${NUM_MINIONS}")); then
break break
else else
if (( attempt > 5 )); then if (( attempt > 20 )); then
echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${NUM_MINIONS}. Your cluster may not be working. ${color_norm}" echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${NUM_MINIONS}. Your cluster may not be working.${color_norm}"
cat -n "${MINIONS_FILE}" cat -n "${MINIONS_FILE}"
exit 2 exit 2
else
echo -e "${color_yellow}Waiting for ${NUM_MINIONS} ready nodes. ${ready} ready nodes, ${found} registered. Retrying.${color_norm}"
fi fi
attempt=$((attempt+1)) attempt=$((attempt+1))
sleep 30 sleep 15
fi fi
done done
echo "Found ${found} nodes." echo "Found ${found} nodes."