From 04d6e0c87787f5586edfadc4f46e09fabc75c5d5 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 19 Nov 2024 13:59:10 -0800 Subject: [PATCH] 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 --- zuul/site-variables.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zuul/site-variables.yaml b/zuul/site-variables.yaml index 6bafd11e26..ade2906398 100644 --- a/zuul/site-variables.yaml +++ b/zuul/site-variables.yaml @@ -7,6 +7,10 @@ zuul_site_mirror_fqdn: >- {%- 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: