From e25a34c8a1ae43f0134e2f187e98fec6f78c1c56 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Wed, 27 May 2015 11:28:33 +0200 Subject: [PATCH] Extend logging for cluster validation --- cluster/validate-cluster.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cluster/validate-cluster.sh b/cluster/validate-cluster.sh index fcf7089650f..b27b19ae8c8 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.sh @@ -45,13 +45,15 @@ while true; do if (( ${found} == "${NUM_MINIONS}" )) && (( ${ready} == "${NUM_MINIONS}")); then break else - if (( attempt > 5 )); 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}" + 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}" cat -n "${MINIONS_FILE}" exit 2 + else + echo -e "${color_yellow}Waiting for ${NUM_MINIONS} ready nodes. ${ready} ready nodes, ${found} registered. Retrying.${color_norm}" fi attempt=$((attempt+1)) - sleep 30 + sleep 15 fi done echo "Found ${found} nodes."