From 870c2d61b27cdbabc2e3eb799f8752e9413842df Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Thu, 24 Sep 2026 07:52:04 +0200 Subject: CI: Prefer ipv4 over ipv6 and disable docker mirror We're getting some ipv6 issues in VexxHost's ca-ymq-1 region, this should at least work around them. Change-Id: I26412e410e9aebb24bc98c943f418f824032be40 Signed-off-by: Michal Nasiadka Signed-off-by: Bartosz Bezak (cherry picked from commit 2f64452fbad843816d74b7584ea81d33d8054a14) --- tests/pre.yml | 11 +++++++++++ tests/templates/globals-default.j2 | 4 ++++ 2 files changed, 15 insertions(+) (limited to 'tests') diff --git a/tests/pre.yml b/tests/pre.yml index a8c17bbcd..be8df89b9 100644 --- a/tests/pre.yml +++ b/tests/pre.yml @@ -65,6 +65,17 @@ state: present when: ansible_facts.distribution == "Rocky" + # TODO(mnasiadka): prefer IPv4 over IPv6 in getaddrinfo() to avoid + # slow/failing AAAA lookups against hosts without real IPv6 + # connectivity. Remove once IPv6 in VexxHost ca-ymq-1 is reliable. + - name: Prefer IPv4 over IPv6 for name resolution + become: true + ansible.builtin.lineinfile: + path: /etc/gai.conf + line: "precedence ::ffff:0:0/96 100" + create: true + when: nodepool.region == 'ca-ymq-1' + # NOTE(yoctozepto): we use gawk to add time to each logged line # outside of Ansible (e.g. for init-runonce) - name: Install gawk and required Python modules diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2 index 1a0d1a01c..867b67aba 100644 --- a/tests/templates/globals-default.j2 +++ b/tests/templates/globals-default.j2 @@ -11,8 +11,12 @@ network_address_family: "{{ address_family }}" kolla_container_engine: "{{ container_engine }}" docker_restart_policy: "no" +# TODO(bbezak): Drop the condition once the mirror in VexxHost ca-ymq-1 is +# reliable. +{% if nodepool.region != 'ca-ymq-1' %} docker_apt_url: "http://{{ zuul_site_mirror_fqdn }}:8080/docker/{{ ansible_facts.distribution | lower }}" docker_yum_url: "http://{{ zuul_site_mirror_fqdn }}:8080/docker/centos" +{% endif %} {% if container_engine == 'podman' %} podman_debug: true -- cgit v1.2.3