From 6bef460bdf495a1b450c00e3277b465880fad392 Mon Sep 17 00:00:00 2001 From: Ryan Fowler Date: Wed, 16 Jul 2014 16:07:26 -0500 Subject: [PATCH] Retry failed release downloads gsutil cp is prone to failure during initial creation of a Kubernetes cluster. This 'until' loop will keep trying as suggested in the 'gsutil cp' documentation. --- cluster/templates/download-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/templates/download-release.sh b/cluster/templates/download-release.sh index e1a61f4fe5b..fe522d63398 100755 --- a/cluster/templates/download-release.sh +++ b/cluster/templates/download-release.sh @@ -21,7 +21,7 @@ # master and run. echo "Downloading release ($MASTER_RELEASE_TAR)" -gsutil cp $MASTER_RELEASE_TAR master-release.tgz +until gsutil cp $MASTER_RELEASE_TAR master-release.tgz; do sleep 1 ; echo "Retrying master download" ; done echo "Unpacking release"