cluster/validate-cluster.sh: Allow for greater than NUM_MINIONS.

Fixes #15887. Print a warning when there are more nodes than expected.

Signed-off-by: Christian Stewart <christian@paral.in>
pull/6/head
Christian Stewart 2015-10-19 17:57:45 -04:00
parent b02b5b9f87
commit fec326f35e
No known key found for this signature in database
GPG Key ID: F68AC06364500AE3
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ while true; do
if (( "${found}" == "${EXPECTED_NUM_NODES}" )) && (( "${ready}" == "${EXPECTED_NUM_NODES}")); then
break
elif (( "${found}" > "${EXPECTED_NUM_NODES}" )) && (( "${ready}" > "${EXPECTED_NUM_NODES}")); then
echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${EXPECTED_NUM_NODES}. Found more nodes than expected, your cluster may not behave correctly.${color_norm}"
break
else
# Set the timeout to ~10minutes (40 x 15 second) to avoid timeouts for 100-node clusters.
if (( attempt > 40 )); then