From 2f00c646169589d21fe58ac670b70eef31468234 Mon Sep 17 00:00:00 2001 From: "Michal (inc0) Jastrzebski" Date: Mon, 10 Jul 2017 10:01:08 -0700 Subject: [PATCH] Enable proxy cache for tarballs download Lately, after we increased number of jobs, infra started to experience network traffic issues due to us downloading registries. This per-nodepool cache should help and also speed up actual gate. Change-Id: I621a9c91e4508ef208a28137a736fd8468388219 Depends-On: I527d32f9b43dabb7640bfb056e2bf828b7c1dfa9 --- tools/setup_gate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index cf834bacbd..0f25ef0762 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -11,6 +11,7 @@ source /etc/nodepool/provider NODEPOOL_MIRROR_HOST=${NODEPOOL_MIRROR_HOST:-mirror.$NODEPOOL_REGION.$NODEPOOL_CLOUD.openstack.org} NODEPOOL_MIRROR_HOST=$(echo $NODEPOOL_MIRROR_HOST|tr '[:upper:]' '[:lower:]') NODEPOOL_PYPI_MIRROR=${NODEPOOL_PYPI_MIRROR:-http://$NODEPOOL_MIRROR_HOST/pypi/simple} +NODEPOOL_TARBALLS_MIRROR=${NODEPOOL_TARBALLS_MIRROR:-http://$NODEPOOL_MIRROR_HOST:8080/tarballs} GIT_PROJECT_DIR=$(mktemp -d) @@ -163,7 +164,7 @@ function prepare_images { BRANCH=$(echo "$ZUUL_BRANCH" | cut -d/ -f2) filename=${BASE_DISTRO}-${INSTALL_TYPE}-registry-${BRANCH}.tar.gz wget -q -c -O "/tmp/$filename" \ - "http://tarballs.openstack.org/kolla/images/$filename" + "${NODEPOOL_TARBALLS_MIRROR}/kolla/images/$filename" sudo tar xzf "/tmp/$filename" -C /tmp/kolla_registry fi }