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
This commit is contained in:
parent
49b8a22d56
commit
2f00c64616
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user