Tuesday, 2024-11-19

-@gerrit:opendev.org- Zuul merged on behalf of Benjamin Schanzel: [zuul/zuul] 934310: zuul-web UI: Fix initial show all pipelines state https://review.opendev.org/c/zuul/zuul/+/93431000:18
-@gerrit:opendev.org- Artem Goncharov proposed: [zuul/zuul] 859940: Implement tests of the gitea driver https://review.opendev.org/c/zuul/zuul/+/85994008:57
@0weng:matrix.org@stephenfin: test ping17:13
@jangutter:matrix.orgHALT WHO DISTURBS THE GINGER!17:13
@jangutter:matrix.orgapologies, popup confused me completely!17:14
@0weng:matrix.orgHaha no worries :D17:14
@0weng:matrix.orgJust troubleshooting some Matrix stuff17:14
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul-jobs] 935574: WIP: Add mirror-container-images role and job https://review.opendev.org/c/zuul/zuul-jobs/+/93557418:35
@clarkb:matrix.orgwhere did we end up with not using the old zuul-registry for the buildset registry21:15
@clarkb:matrix.org * where did we end up with not using the old zuul-registry on docker hub for the buildset registry21:15
@clarkb:matrix.orglooks like that change is failing on the docker hub request limits now too21:16
@clarkb:matrix.orgI'm thinking opendev should maybe drop the docker hub mirror by default so that we can spread out the requests and give us a better shot of success then we should land this change as its one less thing to pull from docker hub21:16
@mnaser:matrix.orgYeah it’s stuck on that but one of the tests pulls registry:2 which doesn’t help Clark 21:18
@clarkb:matrix.orgya but if we drop the config that forces everything through the single proxy cache we in theory get many more requests21:22
@clarkb:matrix.orgnot perfect but may help alleviate some of the problems21:22
@clarkb:matrix.orgmnaser: fwiw not sure if you saw https://www.docker.com/blog/november-2024-updated-plans-announcement/ which indicates a 10 requests per hour limit. However, I checked in the tokens themselves and they report 100 requests per 6 hours21:22
@clarkb:matrix.organyway I suspect that the rough order of operations here will be to stop using proxy caches, then reduce our reliance on docker hub with changes like yours as well as movement to quay or elsewhere21:23
@clarkb:matrix.organd as we do that the remaining use of docker should become more reliable21:24
@clarkb:matrix.orgfor the test that pulls registry:2 I wonder if we can use zuul-registry or something hosted on quay21:24
@jim:acmegating.comit could use zr with a little bit of rework.  it was a bootstrapping problem that is largely alleviated.  but there may still be some value in diversity of testing.  it would be easier to just mirror it to quay a la 935574 if we want to get it out of the path.21:27
@clarkb:matrix.orgthat also seems reasonably21:28
@clarkb:matrix.org * that also seems reasonable21:28
@clarkb:matrix.orgin any case I feel liek getting the proxy caches out of the euqation is at least a temporary help. Would a flag to check at either https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-docker/tasks/docker-upstream.yaml#L12 or https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/use-docker-mirror/tasks/main.yaml work? not sure if there is a preference21:29
@jim:acmegating.comClark: looks like use-docker-mirror doesn't use the new style of mirror config. ideally we would solve this problem by migrating to that. that may be slightly more work than adding a throwaway flag, but it would be forward progress. may not be too hard for something like this.21:31
@jim:acmegating.comhttps://zuul-ci.org/docs/zuul-jobs/latest/mirror.html21:31
@jim:acmegating.com(so in that system, the way to turn off dockerhub would be to simply remove "dockerhub" from zuul_site_mirror_info)21:31
@clarkb:matrix.orgI think if we do that we may still need a separate flag if we want to maintain backward compat?21:31
@clarkb:matrix.orgotherwise we'd just go aehad and configure like we do today?21:32
@jim:acmegating.comif zuul_site_mirror_info is defined and dockerhub is not in zuul_site_mirror_info do not configure dockrehub mirror21:32
@clarkb:matrix.orgah ok that works21:33
@clarkb:matrix.orgI'll work on something along those lines now21:33
@jim:acmegating.com(also, worth rereading that real quick -- i think the var name is actually `mirror_info`)21:33
@clarkb:matrix.orgthe docs say either mirror_info or zuul_site_mirror_info so we'll check both21:34
@clarkb:matrix.orgwe've got quite a matrix of existing conditionals to logic out. THis may take me a minute21:45
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul-jobs] 935722: Support new style mirror_info in use-docker-mirror https://review.opendev.org/c/zuul/zuul-jobs/+/93572221:55
@clarkb:matrix.orgcorvus: ^ that feels a bit more complicated than it needs to be but I think I got the logic right21:55
@mnaser:matrix.org“Unauthenticated users will be limited to 10 Docker Hub pulls/hr/IP address.” Yeah that explains it. It’s kinda pretty much squeezing it out to make it impossible 21:59
@clarkb:matrix.orgmnaser: ya the only thing is the tokens don't indicate that has happend that said the tokens may have the wrong data in them. But experimentally I was able to do more than 10 pulls locally21:59
-@gerrit:opendev.org- Clark Boylan proposed:22:10
- [zuul/zuul-jobs] 935722: Support new style mirror_info in use-docker-mirror https://review.opendev.org/c/zuul/zuul-jobs/+/935722
- [zuul/zuul-jobs] 935726: Fully qualify openvswitch_bridge to make linter happy https://review.opendev.org/c/zuul/zuul-jobs/+/935726
@jim:acmegating.comClark: one comment on that22:11
@clarkb:matrix.orgcorvus: I didn't do that bceause ansible lets you include specific files out of roles so I didn't want to drop what it was already doing in there22:11
@clarkb:matrix.orgthat may be overly cautious and ya we could move everything up into main then only run mirror.yaml once we've decided we're going to do any work22:12
@clarkb:matrix.orgbut that was why I didn't refactor in this way22:12
@jim:acmegating.comyeah, i don't think the individual files are an api we're trying to support22:12
@clarkb:matrix.orgok I'll refactor then22:12
@jim:acmegating.comi think it's better to avoid the tasks, especially here since we're thinking that may end up being the normal case22:12
@clarkb:matrix.orgthe way that makes sense for refactoring to me only cuts the skipped tasks in half (not compeltely removes them) fwiw22:15
@clarkb:matrix.orgbut let me push that and you can see if that is good enough22:15
@jim:acmegating.comi was going for "don't include mirror.yaml if mirror_info exists and dockerhub not in mirror_info"22:16
@clarkb:matrix.orgthe linter error is still happening so I'm trying to figure that out and fix both in the same set of pushes22:19
@clarkb:matrix.orgI think the issue is ansible removed openvswitch.openvswithc collection in ansible 1122:20
@clarkb:matrix.organd so now ansible-lint is thinking you can't use it?22:20
@clarkb:matrix.orghowever we cap the ansible version we lint with which you'd think would avoid this problem22:21
@clarkb:matrix.orghttps://zuul.opendev.org/t/zuul/build/6bb81e73e4b04526a5593bf88c390a4f/log/job-output.txt#883 but we install newer ansible for some reason22:22
@clarkb:matrix.orglinters requirements are separte22:23
@clarkb:matrix.orgfor now I'm going to cap ansible there too I think?22:23
@clarkb:matrix.organd add a TODO in the code22:23
-@gerrit:opendev.org- Clark Boylan proposed:22:28
- [zuul/zuul-jobs] 935726: Cap the ansible version used by ansible-lint https://review.opendev.org/c/zuul/zuul-jobs/+/935726
- [zuul/zuul-jobs] 935722: Support new style mirror_info in use-docker-mirror https://review.opendev.org/c/zuul/zuul-jobs/+/935722
@clarkb:matrix.orgcorvus: ^ is that better?22:28
@jim:acmegating.comClark: yeah that might be a good balance between brevity and readability :)22:38
@clarkb:matrix.orgcorvus: the other thing I'm noticing is taht we don't directly test it22:42
@clarkb:matrix.orgshould be able to depends on it somewhere and have it exercise things though22:43
@clarkb:matrix.orgunless that role is in a trusted job22:44
@clarkb:matrix.orgdon't think it is22:45
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul] 935728: DNM exercising parent change https://review.opendev.org/c/zuul/zuul/+/93572822:46
@jim:acmegating.comyeah, it should be testable.22:46
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul-jobs] 935722: Support new style mirror_info in use-docker-mirror https://review.opendev.org/c/zuul/zuul-jobs/+/93572222:51
@clarkb:matrix.orgthat should run ensure-docker tests too which include use-docker-mirror22:51
@clarkb:matrix.orgit also does a docker pull so I think that will help ensure we don't regress22:52
@clarkb:matrix.orgcorvus: https://zuul.opendev.org/t/zuul/build/2112ca8e28d14635b37a27a45a636179/log/job-output.txt#311-321 it skipped everything which I didn't expect. zuul_site_mirror_fqdn should be set so now I need to look at that22:55
@clarkb:matrix.orgha i see it. testing ftw22:56
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/zuul-jobs] 935722: Support new style mirror_info in use-docker-mirror https://review.opendev.org/c/zuul/zuul-jobs/+/93572222:57
@clarkb:matrix.orgof course now the jobs will fail bceause we're using the caching proxy and will hit rate limits :)22:57
@clarkb:matrix.orghttps://zuul.opendev.org/t/zuul/build/c0037da0260a4353967efb1ef2b00c8e/log/job-output.txt#311-328 ok I think we're covered now and it is working as expected23:00
@clarkb:matrix.orgI think my ansible dictionary element checks may not be correct. What is the canonical way to do that? foo.bar is defined or bar in foo?23:31
@clarkb:matrix.orgoh `is in` works because `is` is a jinjaism that you follow with a test and `in` is a jinja test23:33
@clarkb:matrix.orghttps://jinja.palletsprojects.com/en/latest/templates/#jinja-tests.in23:34
@clarkb:matrix.orgcorvus:  ^ do you have a preference on how we express that in ansible?23:34
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:23:35
- [zuul/zuul] 935729: Batch fake build zookeeper additions https://review.opendev.org/c/zuul/zuul/+/935729
- [zuul/zuul] 935730: Batch fake build database additions https://review.opendev.org/c/zuul/zuul/+/935730
@jim:acmegating.comClark: no pref23:37
@clarkb:matrix.orgok I'll avoid another roundtrip and leave it as it is23:37

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!