From d8791acdbaa00a57e1bd337ddfb5dc77a7df0091 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Thu, 29 Jan 2015 21:08:27 -0500 Subject: [PATCH] Pause between launching master and minions Salt does not retry if master is not ready, apparently --- cluster/aws/util.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cluster/aws/util.sh b/cluster/aws/util.sh index af0eb3e98f4..07b27cd4b68 100644 --- a/cluster/aws/util.sh +++ b/cluster/aws/util.sh @@ -342,6 +342,11 @@ function kube-up { add-tag $master_id Name $MASTER_NAME add-tag $master_id Role $MASTER_TAG + echo "Waiting 1 minute for master to be ready" + # TODO(justinsb): Actually poll for the master being ready + # (we at least need the salt-master to be up before the minions come up) + sleep 60 + for (( i=0; i<${#MINION_NAMES[@]}; i++)); do echo "Starting Minion (${MINION_NAMES[$i]})" ( @@ -400,7 +405,8 @@ function kube-up { # Wait 3 minutes for cluster to come up. We hit it with a "highstate" after that to # make sure that everything is well configured. - echo "Waiting for cluster to settle" + # TODO: Can we poll here? + echo "Waiting 3 minutes for cluster to settle" local i for (( i=0; i < 6*3; i++)); do printf "."