From b543369a25a9c8d530bb4ee2a10d9e6c67953afc Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sun, 1 Apr 2018 20:47:30 -0400 Subject: [PATCH] Only cache ETCD tarballs for amd64. Multiarch versions of ETCD only exist for v3.2.x, this means when we try to cache etcd-v3.1.10-linux-arm64.tar.gz for nodepool-builder, we are not able to find it. Breaking our image builds. Change-Id: I61656cbd71173b1904c7fe70af91b3873acc4d50 Signed-off-by: Paul Belanger --- stackrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stackrc b/stackrc index 14bf856706..e8a2d39957 100644 --- a/stackrc +++ b/stackrc @@ -771,7 +771,12 @@ ETCD_NAME=etcd-$ETCD_VERSION-linux-$ETCD_ARCH ETCD_DOWNLOAD_FILE=$ETCD_NAME.tar.gz ETCD_DOWNLOAD_LOCATION=$ETCD_DOWNLOAD_URL/$ETCD_VERSION/$ETCD_DOWNLOAD_FILE # etcd is always required, so place it into list of pre-cached downloads -EXTRA_CACHE_URLS+=",$ETCD_DOWNLOAD_LOCATION" +if is_arch "x86_64"; then + # NOTE(pabelanger): Only v3.2.x of ETCD has support for multiarch. This + # means on stable branches our version is too old to try and cache and will + # 404 DIBs for nodpeool. + EXTRA_CACHE_URLS+=",$ETCD_DOWNLOAD_LOCATION" +fi # Detect duplicate values in IMAGE_URLS for image_url in ${IMAGE_URLS//,/ }; do