aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2026-09-24 07:52:04 +0200
committerBartosz Bezak <bartosz@stackhpc.com>2026-09-24 14:18:38 +0000
commit870c2d61b27cdbabc2e3eb799f8752e9413842df (patch)
tree9af167d80537b5688258f8a395d59060d092c405 /tests
parent94e3e38b04e4fb8e993966b571e21a9c2b421d0b (diff)
downloadkolla-ansible-870c2d61b27cdbabc2e3eb799f8752e9413842df.tar.gz
kolla-ansible-870c2d61b27cdbabc2e3eb799f8752e9413842df.zip
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 <mnasiadka@gmail.com> Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com> (cherry picked from commit 2f64452fbad843816d74b7584ea81d33d8054a14)
Diffstat (limited to 'tests')
-rw-r--r--tests/pre.yml11
-rw-r--r--tests/templates/globals-default.j24
2 files changed, 15 insertions, 0 deletions
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