#421 Cannot initialize mock environment for sclo7-python27-rh-el7 build target
Closed: Fixed 2 years ago by arrfab. Opened 2 years ago by jstanek.

I'm trying to rebuild new releases for the (rather old) python27 scl. However, I'm getting the following error:

2021-08-31 11:21:38,385 [INFO] {1584101} koji.build.buildroot:540 Running mock as kojibuilder
INFO: mock.py version 2.8 starting (python version = 3.6.8, NVR = mock-2.8-1.el8)...
Start(bootstrap): init plugins
INFO: selinux enabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
Start: clean chroot
Finish: clean chroot
Start(bootstrap): chroot init
INFO: calling preinit hooks
INFO: enabled HW Info plugin
Mock Version: 2.8
INFO: Mock Version: 2.8
Start(bootstrap): dnf install
ERROR: Command failed: 
 # /usr/bin/dnf --installroot /var/lib/mock/sclo7-python27-rh-el7-build-100241-853517-bootstrap/root/ --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk install dnf dnf-plugins-core --setopt=tsflags=nocontexts
Unable to detect release version (use '--releasever' to specify release version)
No matches found for the following disable plugin patterns: local, spacewalk
Last metadata expiration check: 0:00:04 ago on Tue Aug 31 11:21:39 2021.
No match for argument: dnf
No match for argument: dnf-plugins-core
Error: Unable to find a match: dnf dnf-plugins-core

Is it possible to configure the target to use the older, yum-based images?


Metadata Update from @humaton:
- Issue tagged with: cbs, low-gain, low-trouble

2 years ago

Metadata Update from @arrfab:
- Issue assigned to arrfab

2 years ago

I had a quick look and that's indeed an "old" tag that wasn't updated in a while (as it wasn't even following the correct naming convention).
So when we moved to new system, it wasn't updated to include centos 7 extras, which provide dnf pkgs.
It's now added so it should work :

 koji add-external-repo --mode bare --tag sclo7-python27-rh-el7-build centos7-extras
Added external repo centos7-extras to tag sclo7-python27-rh-el7-build (priority 20)

Can you give it a try and give us feedback ?
PS : worth knowing that if you still need to build for such old tags, it would be good to verify (through cbs taginfo that centos7-extras is listed as external repo)

I had a quick look and that's indeed an "old" tag that wasn't updated in a while (as it wasn't even following the correct naming convention).

Yeah, and I also did not expect any more updates there…

Can you give it a try and give us feedback?

centos7-extras is now listed as external repo, but the initialization still fails: https://cbs.centos.org/kojifiles/work/tasks/9860/2529860/mock_output.log

There was an extra external repo that was used for SCL bootstrap probably in conflict : I removed it and the build worked fine : https://cbs.centos.org/koji/taskinfo?taskID=2533384

Metadata Update from @arrfab:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Boards 1
CBS Status: Backlog