From 90ce23ec1e2bb9ac1f1a69e7fa64e02ca20b9f90 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Thu, 28 Mar 2019 20:29:45 -0400 Subject: [PATCH] gate: cache /etc/pip.conf inside containers In order to be able to leverage the local PyPI cache in each region, this patch copies the pip.conf file supplied by infra. which should speed up our jobs and their reliability. Depends-On: https://review.openstack.org/648556 Depends-On: https://review.openstack.org/648724 Change-Id: I10e922a4294fec783f731d6664f75f8c56129160 --- .../bootstrap-host/templates/user_variables.aio.yml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) 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 322db9b342..faeac32f0c 100644 --- a/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 +++ b/tests/roles/bootstrap-host/templates/user_variables.aio.yml.j2 @@ -181,6 +181,12 @@ tempest_run: yes tempest_network_ping_gateway: yes {% if nodepool_dir.stat.exists %} +# Copy /etc/pip.conf into containers to get mirrors for wheels +# and due to extra-index-url bugs in Ubuntu, we workaround it +# by ignoring the config file during PIP upgrade time +venv_pip_upgrade_noconf: true +lxc_container_cache_files_from_host: + - /etc/pip.conf # Disable chronyd in OpenStack CI security_rhel7_enable_chrony: no # The location where images are downloaded in openstack-infra