Unable to build fc25 chroots with mock
Description
Activity
Eyal Edri December 20, 2016 at 3:09 PM
This comes with a price - if we'll have more fedora slaves than centos due to this, then we'll need to to mass upgrades much more often, due to the speed of fedora releases goes EOL
Anton Marchukov December 20, 2016 at 3:01 PM
I support @Former user in that we should not try to maintain non supported options ourselves if we have options.
I would better use fedora executors with dnf for fedora mock jobs. This is part of reality that using yum with FC25 is no longer supported and will never be supported, that mock uses external package management tool to install packages and that there is no dnf in centos7. All this combined means that we cannot normally use Fedora mock on CentOS right now. And since we have Fedora slaves we can run such jobs on Fedora.
Former user December 19, 2016 at 8:35 AM
We have Fedora slaves attached to the Jenkins and I prepared a few fc25 ones as part of https://ovirt-jira.atlassian.net/browse/OVIRT-822#icft=OVIRT-822 . Maybe we should make fc25 jobs run only on fc25 slaves for now? Does mock itself support dnf?
Barak Korren December 18, 2016 at 10:09 AM
So we need to think if we can just use 'dnf' in fc25 mock config instead.
We cant. We need it to run on el7 hosts. Those do not have DNF.
Nadav Goldin December 18, 2016 at 9:47 AM
As commented in https://bugzilla.redhat.com/show_bug.cgi?id=1360781#c28 , changing the installation to 'dnf' works. So we need to think if we can just use 'dnf' in fc25 mock config instead.
Barak Korren December 15, 2016 at 9:56 AM
In order words, just implement what @Nadav Goldin already described above
Barak Korren December 15, 2016 at 9:55 AM
I think @Nadav Goldin already found a solution for this and used it for Lago tests.
Its probably something we can hard-wire into the mock *.cnf
file to solve for everyone.
Eyal Edri December 14, 2016 at 2:51 PM
@Barak Korren @sbonazolla thoughts? we might wait a long time until the bug is fixed.
Mock fails when trying to build the chroot for fedora25, on installing '@buildsys-build' group(with dnf) stage.
Open bug: https://bugzilla.redhat.com/show_bug.cgi?id=1360781
Temporarily workaround: add the 'libcrypt' package to '.packages.fc25' file.
Possible solution: patch mock-fc25.cfg file in Jenkins repository to always install 'libcrypt' first.
Until fixed this will block us from building anything with mock on fc25(hit it when trying to build fc25 RPMs for lago).
Error logs:
DEBUG util.py:502: Executing command: ['/usr/bin/yum-deprecated', '--installroot', '/var/lib/mock/fedora-25-x86_64-2474d86945a1de9c6d14549ec2401b9c-8291/root/', '--releasever', '25', 'install', '@buildsys-build', 'git', 'python', 'python-dulwich', 'python-setuptools', 'yum', 'yum-utils', '--setopt=tsflags=nocontexts'] with env {'PS1': '<mock-chroot> \\s-\\v\\$ ', .... DEBUG util.py:421: Yum command has been deprecated, use dnf instead. DEBUG util.py:421: See 'man dnf' and 'man yum2dnf' for more information. DEBUG util.py:421: Error: libcrypt conflicts with libcrypt-nss-2.24-3.fc25.x86_64 DEBUG util.py:421: Error: libcrypt-nss conflicts with libcrypt-2.24-3.fc25.x86_64 DEBUG util.py:421: You could try using --skip-broken to work around the problem DEBUG util.py:421: You could try running: rpm -Va --nofiles --nodigest DEBUG util.py:557: Child return code was: 1 DEBUG util.py:180: kill orphans