On Wednesday, January 06, 2016 04:49:25 PM Richard W.M. Jones wrote:
On Thu, Dec 17, 2015 at 03:00:20PM -0600, Dennis Gilmore wrote:
> On Thursday, December 17, 2015 12:18:59 PM Mike Bonnet wrote:
> > On 12/17/15 12:13 PM, pagure(a)pagure.io wrote:
> > > ausil opened a new pull-request against the project: `koji` that you
> > > are
> > > following: ``
> > > Enable keepcache in koji dnf conf
> > > ``
> >
> > What's the cache expiration policy? Is there a size limit? I'm
concerned
> > that this could cause builder disks to fill up with cached packages.
>
> The cache is internal to the buildroot. it is cleaned up with the
> buildroot. the result here is to make dnf have the same behaviour as yum
> and it fixes an issue preventing supermin from being able to build.
>
https://fedorahosted.org/rel-eng/ticket/6274 is the report to releng
I've tried to test this on current Fedora koji, and assuming that this
patch was really deployed, it unfortunately isn't working.
I did a scratch build which dumps out the contents of every file
matching /etc/yum* /etc/dnf* under the chroot, and the relevant output
is below. It doesn't seem to make sense to me however, since dnf.conf
would appear to be completely empty.
However probably the dnf.conf inside the chroot is irrelevant here.
Another alternative is to pass `--setopt=keepcache=1', but I'm unclear
where one would set that. We currently pass `--setopt=deltarpm=false'
but I wasn't able to locate the code which does that.
In mocks code
grep -r delta .
./etc/mock/site-defaults.cfg:# config_opts['dnf_common_opts'] = ['--
setopt=deltarpm=false']
./py/mockbuild/package_manager.py: self.config['dnf_common_opts'] =
self.config['yum_common_opts'] + ['--setopt=deltarpm=false']
./mock.spec.in:- use --setopt=deltarpm=false as default value for
dnf_common_opts [RHBZ#1281355]
Another path would be having mock default to passing `--setopt=keepcache=1'
It is working now however. Kojid had not been restarted on the builders post
update.
Rich.
----------------------------------------------------------------------
++ find /etc/yum /etc/yum.conf /etc/yum.conf.rpmnew /etc/yum.repos.d
/etc/dnf /etc/dnf.conf -type f + for f in '`find /etc/yum* /etc/dnf* -type
f`'
+ cat /etc/yum/version-groups.conf
# This file allows you to create "groups" of package names, which are used
by # the version command.
[yum]
# These are the top level things to do with yum, we don't list Eg.
libselinux # even though that's require by rpm(-libs).
run_with_packages = true
pkglist = glibc, sqlite, libcurl, nss,
yum-metadata-parser,
rpm, rpm-libs, rpm-python,
python,
python-iniparse, python-urlgrabber, python-pycurl
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum/protected.d/systemd.conf
systemd
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.conf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.conf.rpmnew
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
# This is the default, if you make this bigger yum won't see if the
metadata # is newer on the remote and so you'll "gain" the bandwidth of
not
having to # download the new metadata and "pay" for it by yum not having
correct # information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this
checking # interupting your command line usage, it's much better to have
something # manually check the metadata once an hour (yum-updatesd will do
this). # metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$release
ver/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f
$releasever&arch=$basearch enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$release
ver/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-d
ebug-f$releasever&arch=$basearch enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$release
ver/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-s
ource-f$releasever&arch=$basearch enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releas
ever/Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever
&arch=$basearch enabled=0
#metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releas
ever/Everything/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$rele
asever&arch=$basearch enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releas
ever/Everything/source/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$rel
easever&arch=$basearch enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora.repo
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora-updates-testing.repo
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/yum.repos.d/fedora-rawhide.repo
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf/dnf.conf.rpmnew
[updates-testing]
name=Fedora $releasever - $basearch - Test Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/
$releasever/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f$
releasever&arch=$basearch enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-testing-debuginfo]
name=Fedora $releasever - $basearch - Test Updates Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/
$releasever/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-de
bug-f$releasever&arch=$basearch enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[updates-testing-source]
name=Fedora $releasever - Test Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/
$releasever/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-so
urce-f$releasever&arch=$basearch enabled=0
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
# These packages are untested and still under development. This
# repository is used for development of new releases.
#
# This repository can see significant daily turnover and major
# functionality changes which cause unexpected problems with other
# development packages. Please use these packages if you want to work
# with the Fedora developers by testing these new development packages.
#
# #
https://admin.fedoraproject.org/mailman/listinfo/test (Subscription
# Required) is available as a discussion forum for
# testing and troubleshooting for development packages in conjunction
# with new test releases.
#
# More information is available at
http://fedoraproject.org/wiki/Testing
#
# Reproducible and reportable issues should be filed at
#
http://bugzilla.redhat.com/.
#
# Product: Fedora
# Version: rawhide
[rawhide]
name=Fedora - Rawhide - Developmental packages for the next Fedora release
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/rawh
ide/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch...
arch enabled=1
metadata_expire=6h
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[rawhide-debuginfo]
name=Fedora - Rawhide - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/rawh
ide/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide-debug&am...
=$basearch enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[rawhide-source]
name=Fedora - Rawhide - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/rawh
ide/source/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=rawhide-source&a...
h=$basearch enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
dnf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf/protected.d/dnf.conf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf/dnf.conf
+ for f in '`find /etc/yum* /etc/dnf* -type f`'
+ cat /etc/dnf.conf
----------------------------------------------------------------------