From f763c5974322230003992092e2fdb1badb83a664 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Mon, 5 Oct 2015 09:11:03 -0400 Subject: [PATCH] AWS: Increase the timeout for S3 bucket creation The current timeout of 5 seconds is needlessly short, given that we fail kube-up if the (eventually consistent?) bucket creation takes longer. Raise it to 120 seconds. Possibly related to issue #14278 --- cluster/aws/util.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cluster/aws/util.sh b/cluster/aws/util.sh index 213816a19c9..3e39cc1365a 100644 --- a/cluster/aws/util.sh +++ b/cluster/aws/util.sh @@ -498,10 +498,12 @@ function upload-server-tars() { # and then the bucket is most-simply named (s3.amazonaws.com) aws s3 mb "s3://${AWS_S3_BUCKET}" --region ${AWS_S3_REGION} + echo "Confirming bucket was created..." + local attempt=0 while true; do if ! aws s3 ls --region ${AWS_S3_REGION} "s3://${AWS_S3_BUCKET}" > /dev/null 2>&1; then - if (( attempt > 5 )); then + if (( attempt > 120 )); then echo echo -e "${color_red}Unable to confirm bucket creation." >&2 echo "Please ensure that s3://${AWS_S3_BUCKET} exists" >&2