diff --git a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml index 16eedead52..2d7f8d50ec 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml @@ -78,6 +78,13 @@ - nodepool_dir.stat.exists - bootstrap_host_ubuntu_repo is defined +- name: Set the package cache timeout to 60 mins in OpenStack-CI + set_fact: + cache_timeout: 3600 + when: + - cache_timeout is not defined + - nodepool_dir.stat.exists + - name: Determine if the host has a global pip config file stat: path: /etc/pip.conf diff --git a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 index 0c2751cb99..38067a202b 100644 --- a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 +++ b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 @@ -83,6 +83,11 @@ repo_build_pip_extra_indexes: uca_apt_repo_url: {{ uca_apt_repo_url }} {% endif %} +{% if cache_timeout is defined %} +## Package cache timeout +cache_timeout: {{ cache_timeout }} +{% endif %} + ## Instruct the gate to always build libvirt-python from pip source repo_build_pip_no_binary: - libvirt-python