On Sat, 2019-03-09 at 21:29 +0100, Mikolaj Izdebski wrote: > On Sat, Mar 9, 2019 at 2:29 PM Jonathan Dieter <jdieter@xxxxxxxxx> > wrote: > > Hey, I just noticed that, while we have zchunked metadata for the > > F30 > > base repository, it's not enabled to for updates-testing. > > > > I've looked in the ansible repo and in pungi, but I can't see where > > createrepo_c is actually called for updates-testing. Can someone > > please point me in the right direction? > > createrepo for updates-testing is ran by pungi. I believe you need to > enable zchunk in pungi.conf (createrepo_extra_args option). For > non-modular updates-testing the config is > roles/bodhi2/backend/templates/pungi.rpm.conf.j2 in ansible.git. > Similarly, for modular equivalent, pungi config is located at > roles/bodhi2/backend/templates/pungi.module.conf.j2 Thanks for pointing me in the right direction. I think I've got it, complete with a conditional so we don't start generating zchunk metadata for F29 updates. There doesn't seem to be a way to generate pull requests on https://infrastructure.fedoraproject.org/cgit/ansible.git, so I'm attaching the support as a patch. If there's a better way for me to send it in, please let me know. Jonathan P.S. It may be a small and simple patch, but I haven't actually tested it and am not sure how to go about doing so.
From 17eefaa1cefb624afa0cf95d04e7f337ba70cb42 Mon Sep 17 00:00:00 2001 From: Jonathan Dieter <jdieter@xxxxxxxxx> Date: Sat, 9 Mar 2019 22:52:48 +0000 Subject: [PATCH] Add zchunk support to updates and updates-testing repositories This adds zchunk support for the updates and updates-testing repositories for both rpms and modularity Signed-off-by: Jonathan Dieter <jdieter@xxxxxxxxx> --- roles/bodhi2/backend/templates/pungi.module.conf.j2 | 3 +++ roles/bodhi2/backend/templates/pungi.rpm.conf.j2 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/roles/bodhi2/backend/templates/pungi.module.conf.j2 b/roles/bodhi2/backend/templates/pungi.module.conf.j2 index bb021eb13..7dad35403 100644 --- a/roles/bodhi2/backend/templates/pungi.module.conf.j2 +++ b/roles/bodhi2/backend/templates/pungi.module.conf.j2 @@ -59,6 +59,9 @@ greedy_method = 'build' createrepo_c = True createrepo_checksum = 'sha256' createrepo_deltas = False +[% if release.version_int >= 30 %] +createrepo_extra_args = ['--zck', '--zck-dict-dir=/usr/share/fedora-repo-zdicts/f[[ release.version_int ]]'] +[% endif %] #jigdo create_jigdo = False diff --git a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 index 8d9e9a3f2..020736aee 100644 --- a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 +++ b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 @@ -66,6 +66,9 @@ createrepo_deltas = [ ('^Everything$', {'*': True}) ] createrepo_database = True +[% if release.version_int >= 30 %] +createrepo_extra_args = ['--zck', '--zck-dict-dir=/usr/share/fedora-repo-zdicts/f[[ release.version_int ]]'] +[% endif %] # CHECKSUMS media_checksums = ['sha256'] -- 2.20.1
_______________________________________________ infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx