Saturday, 2025-04-05

cardoeIf I'm looking to publish the same container to quay and docker hub, the standard opendev-container-image jobs don't handle that right?02:19
cardoeOr do I need to define two container_images for the job?02:21
tonybcardoe: I think you need to look for promote-container-image 02:23
tonybcardoe: let me see if I can find a good example02:23
cardoeI can push what I've hacked together if that would help.02:23
cardoehttps://paste.opendev.org/show/b4kBF8wakQpuMEhNf3O3/02:24
cardoeMaybe my approach is wrong02:24
cardoehttps://opendev.org/openstack/loci/src/branch/master/zuul.d/project.yaml ultimately looking to replace that02:24
cardoeAnd make it more straight forward02:24
tonybcardoe: It looks more complex than I would have expected, but please gimme 10 to digest it02:25
cardoehttps://opendev.org/openstack/loci/src/branch/master/zuul.d/2023.2-ubuntu_jammy.yaml sorry that's what I'm replacing.02:25
tonybcardoe: I'll start by saying that I'm not an expert on this but for a new conatiner image in system-coinfig I did: https://review.opendev.org/c/opendev/system-config/+/921321/14/zuul.d/docker-images/mediawiki.yaml and https://review.opendev.org/c/opendev/system-config/+/921321/14/zuul.d/project.yaml02:31
tonybso in the check pipeline you build/check your image, in gate, you upload it 02:32
tonyband you define the inter-job dependencies in the pipeline rather than the job02:32
cardoeLooks pretty similar except the double container definition02:33
tonybIn your paste I only see the job definitions02:34
cardoeYeah I haven't added them to the project yet. This isn't ready to commit.02:35
tonybSeeing the pipline change would help, also I don't know for sure the "dependencies" in the job are what you want, but that could just be because it's different to what we do in system-config02:35
tonybAlso in your zuul_work_dir I think the project shoudl be 'opendev.org/openstack/loci', unless of course you're in the process of moving namespace ?02:38
cardoeyes thank you I got that wrong02:38
tonybnp.  I think you're pretty close.  I realise I misread your original question02:40
Clark[m]I think you can use the container jobs to upload to arbitrary registries 02:41
Clark[m]There was a bunch of semi recent refactoring to make that possible02:41
cardoeSo I don't need to define 2 container images?02:41
tonybcardoe: If you build the image and push it to the intermediate registry then you can have n jobs push from the intermediate registry to each of the services you need02:43
cardoeThat makes sense to me.02:43
tonybAs long as your build, or maybe upload job "provides" the image and any publish/promote "requires" it you should be fine02:44
tonybcardoe: another option would be to offically only publish to one registry *cough*quay.io*cough* and then have a periodic job mirror from the source-of-truth to the other services02:45
tonybcardoe: if lag/latency is fine02:46
Clark[m]Ya I think you define one artifact then promote it to multiple places02:46
tonybcardoe: see: https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/mirror-container-images for that option02:48
cardoeI'm missing the connection between a job and roles liek that.02:50
tonybcardoe: IIUC: the connection(s) are the various pipelines, check: is well check so it builds and tests the image, gate: will build/test and publish the image, and if you go down this path periodic: would take all the images on ${server_1} and mirror them to ${server_2}02:53
tonybcardoe: I did say I'm not an expert, but that's how I understand it02:58
cardoeCan I variablize the provides and requires for a job?03:43
cardoehrm... so use-buildset-registry as documented seems to fail.. https://zuul.opendev.org/t/openstack/stream/8643e5881f1c48238800b231bb97c0be?logfile=console.log04:19
tonybcardoe: Gotta wait for the job to fully fail as that stream is closed04:22
tonybcardoe: I guess the job is https://review.opendev.org/c/openstack/loci/+/946456/04:22
tonybcardoe: Okay so I see the failure: https://zuul.opendev.org/t/openstack/build/72d6fc100fd64fabafcc20152aefffb304:29
tonybcardoe: I think rather than removing loci-buildset-registry you need to switch it for: opendev-buildset-registry04:34
cardoetonyb: thanks!15:44
opendevreviewTakashi Kajinami proposed opendev/system-config master: Update exclude list for puppetlabs repository sync  https://review.opendev.org/c/opendev/system-config/+/94650117:30
opendevreviewTakashi Kajinami proposed opendev/system-config master: Update exclude list for puppetlabs repository sync  https://review.opendev.org/c/opendev/system-config/+/94650117:31

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