Files
project-config/zuul/site-variables.yaml
Clark Boylan 04d6e0c877 Disable docker hub mirror use in jobs
Docker hub rate limits have become a problem made worse by forcing all
of our requests through a single IP per cloud region (the docker hub
proxy cache running on our mirror nodes). Attempt to alleviate these
issues by disabling the use of the proxy cache for docker hub. This will
allow us to use far more IPs which should make this less of an issue. Of
course that will create more network traffic which isn't ideal either
and we may be more susceptible to network problems.

We do this by configuring an empty zuul_site_mirror_info which the
depends on looks at and will noop if present without a dockerhub config
in this dictionary.

Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/935722
Change-Id: Ibab72d777083a5bb119f29915f680bcd07a1caec
2024-11-19 13:59:10 -08:00

21 lines
933 B
YAML

# This file contains ansible variables that are used by our zuul-executors.
---
# Rackspace sets up internal addresses for hosts, which we preference here
zuul_site_mirror_fqdn: >-
{%- if nodepool.region + "." + nodepool.cloud in [ "DFW.rax", "IAD.rax", "ORD.rax", ] -%}
mirror-int.{{ nodepool.region | lower }}.{{ nodepool.cloud | lower }}.opendev.org
{%- else -%}
mirror.{{ nodepool.region | lower }}.{{ nodepool.cloud | lower }}.opendev.org
{%- endif -%}
# This is explicitly empty to disable dockerhub mirroring
# TODO we should port all of our mirroring config into here as different
# mirror setup roles support this functionality.
zuul_site_mirror_info: {}
zuul_site_ipv4_route_required: true
zuul_site_traceroute_host: opendev.org
zuul_site_image_manifest_files:
- /etc/dib-builddate.txt
- /etc/image-hostname.txt
zuul_output_dir: "{{ ansible_user_dir }}/zuul-output"
bindep_command: /usr/bindep-env/bin/bindep