diff --git a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml index b89edbd3dc..0ae3fce1ac 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml @@ -91,6 +91,19 @@ path: /etc/pip.conf register: pip_conf_file +# This is a very dirty hack due to images.linuxcontainers.org +# constantly failing to resolve in openstack-infra. +- name: Implement hard-coded hosts entries for consistently failing name + lineinfile: + path: "/etc/hosts" + line: "{{ item }}" + state: present + with_items: + - "91.189.91.21 images.linuxcontainers.org us.images.linuxcontainers.org" + - "91.189.88.37 images.linuxcontainers.org uk.images.linuxcontainers.org" + when: + - nodepool_dir.stat.exists + - name: Determine the fastest available OpenStack-Infra wheel mirror command: "{{ bootstrap_host_aio_script_path }}/fastest-infra-wheel-mirror.py" register: fastest_wheel_mirror