From eb3483eabaad739c746a67a22ce2da5579c7f01c Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Fri, 22 Jul 2016 00:39:35 -0400 Subject: [PATCH] kube-up: increase download timeout for kubernetes.tar.gz Particularly on smaller instances on AWS, we were hitting the 80 second timeout now that our image is well over the 1GB mark. Increase the timeout from 80 seconds to 300 seconds. Fix #29418 --- cluster/gce/configure-vm.sh | 2 +- cluster/gce/gci/configure.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/gce/configure-vm.sh b/cluster/gce/configure-vm.sh index 0f7ec8decbe..c62e3a8781b 100755 --- a/cluster/gce/configure-vm.sh +++ b/cluster/gce/configure-vm.sh @@ -166,7 +166,7 @@ download-or-bust() { for url in "${urls[@]}"; do local file="${url##*/}" rm -f "${file}" - if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --max-time 80 --retry 6 --retry-delay 10 "${url}"; then + if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --max-time 300 --retry 6 --retry-delay 10 "${url}"; then echo "== Failed to download ${url}. Retrying. ==" elif [[ -n "${hash}" ]] && ! validate-hash "${file}" "${hash}"; then echo "== Hash validation of ${url} failed. Retrying. ==" diff --git a/cluster/gce/gci/configure.sh b/cluster/gce/gci/configure.sh index 46d695f497c..8f2fe3d10c7 100644 --- a/cluster/gce/gci/configure.sh +++ b/cluster/gce/gci/configure.sh @@ -78,7 +78,7 @@ function download-or-bust { for url in "${urls[@]}"; do local file="${url##*/}" rm -f "${file}" - if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --max-time 80 --retry 6 --retry-delay 10 "${url}"; then + if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --max-time 300 --retry 6 --retry-delay 10 "${url}"; then echo "== Failed to download ${url}. Retrying. ==" elif [[ -n "${hash}" ]] && ! validate-hash "${file}" "${hash}"; then echo "== Hash validation of ${url} failed. Retrying. =="