From 575a090af222a6e07520570690e63a9ca7af5434 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Tue, 21 Feb 2023 15:13:55 +0100 Subject: toolbox: Increase galaxy timeout and retry download Change-Id: I6e66aea5dc0af61fbc074b4c8ed3910435c98dbd --- docker/kolla-toolbox/Dockerfile.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index d38a1937f..b3d147458 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -87,7 +87,8 @@ RUN {{ macros.install_pip(['pip', 'wheel', 'setuptools']) }} \ && mkdir -p /etc/ansible /usr/share/ansible \ && echo 'localhost ansible_connection=local ansible_python_interpreter={{ virtualenv_path }}/bin/python' > /etc/ansible/hosts \ && sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' {{ os_client_config }} \ - && ansible-galaxy collection install -p /usr/share/ansible/collections -r /var/lib/ansible/requirements.yml + && for i in {1..5}; do ansible-galaxy collection install --timeout 120 -p /usr/share/ansible/collections -r /var/lib/ansible/requirements.yml \ + && break || sleep 15; done ENV ANSIBLE_LIBRARY /usr/share/ansible:$ANSIBLE_LIBRARY -- cgit v1.2.3