From fec326f35e2721f080d450e32162adc1b6b89742 Mon Sep 17 00:00:00 2001 From: Christian Stewart Date: Mon, 19 Oct 2015 17:57:45 -0400 Subject: [PATCH] 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 --- cluster/validate-cluster.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster/validate-cluster.sh b/cluster/validate-cluster.sh index 7b262955f6a..e3682b219d9 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.sh @@ -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