-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Description
I use latest version of mock from Fedora rawhide:
[root@rpm ~]# rpm -qa | grep mock
mock-filesystem-6.5-1.fc44.noarch
mock-core-configs-43.3-1.fc44.noarch
mock-6.5-1.fc44.noarchCreating the build environment for opensuse-leap-16.0 fails with SSL error:
[root@rpm ~]# mock --init --root=opensuse-leap-16.0-x86_64
INFO: mock.py version 6.5 starting (python version = 3.14.0, NVR = mock-6.5-1.fc44), args: /usr/libexec/mock/mock --init --root=opensuse-leap-16.0-x86_64
Start(bootstrap): init plugins
INFO: selinux disabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux disabled
Finish: init plugins
INFO: Signal handler active
Start: run
Start: clean chroot
Finish: clean chroot
Mock Version: 6.5
INFO: Mock Version: 6.5
Start(bootstrap): chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: /etc/mock/templates/opensuse-leap-16.0.tpl newer than root cache; cache will be rebuilt
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: Package manager dnf4 detected and used (fallback)
Start(bootstrap): installing dnf tooling
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
[…]
Finish(bootstrap): chroot init
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start: cleaning package manager metadata
Finish: cleaning package manager metadata
INFO: enabled HW Info plugin
INFO: Package manager dnf4 detected and used (direct choice)
Start: installing minimal buildroot with dnf
Failed to set locale, defaulting to C
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
openSUSE Leap 16.0 - x86_64 - OSS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'opensuse-leap-oss':
- Curl error (60): SSL peer certificate or SSH remote key was not OK for https://download.opensuse.org/distribution/leap/16.0/repo/oss/repodata/repomd.xml [SSL certificate problem: unable to get local issuer certificate]
Error: Failed to download metadata for repo 'opensuse-leap-oss': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
WARNING: DNF4 command failed, retrying, attempt #2, sleeping 20s
Failed to set locale, defaulting to C
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
openSUSE Leap 16.0 - x86_64 - OSS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'opensuse-leap-oss':
- Curl error (60): SSL peer certificate or SSH remote key was not OK for https://download.opensuse.org/distribution/leap/16.0/repo/oss/repodata/repomd.xml [SSL certificate problem: unable to get local issuer certificate]
Error: Failed to download metadata for repo 'opensuse-leap-oss': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
WARNING: DNF4 command failed, retrying, attempt #3, sleeping 20s
Failed to set locale, defaulting to C
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
openSUSE Leap 16.0 - x86_64 - OSS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'opensuse-leap-oss':
- Curl error (60): SSL peer certificate or SSH remote key was not OK for https://download.opensuse.org/distribution/leap/16.0/repo/oss/repodata/repomd.xml [SSL certificate problem: unable to get local issuer certificate]
Error: Failed to download metadata for repo 'opensuse-leap-oss': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
WARNING: DNF4 command failed, retrying, attempt #4, sleeping 20s
Failed to set locale, defaulting to C
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
openSUSE Leap 16.0 - x86_64 - OSS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'opensuse-leap-oss':
- Curl error (60): SSL peer certificate or SSH remote key was not OK for https://download.opensuse.org/distribution/leap/16.0/repo/oss/repodata/repomd.xml [SSL certificate problem: unable to get local issuer certificate]
Error: Failed to download metadata for repo 'opensuse-leap-oss': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
ERROR: Command failed:
# /usr/bin/dnf-3 --installroot /var/lib/mock/opensuse-leap-16.0-x86_64/root/ --releasever 16.0 --setopt=deltarpm=False --setopt=allow_vendor_change=yes --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install patterns-devel-base-devel_rpm_build ca-certificates ca-certificates-mozilla
Failed to set locale, defaulting to C
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
openSUSE Leap 16.0 - x86_64 - OSS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'opensuse-leap-oss':
- Curl error (60): SSL peer certificate or SSH remote key was not OK for https://download.opensuse.org/distribution/leap/16.0/repo/oss/repodata/repomd.xml [SSL certificate problem: unable to get local issuer certificate]
Error: Failed to download metadata for repo 'opensuse-leap-oss': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were triedThe workaround I found is to install ca-certificates-mozilla along with dnf:
[root@rpm ~]# echo "config_opts['dnf_install_command'] += ' ca-certificates-mozilla'" >> /etc/mock/opensuse-leap-16.0-x86_64.cfgMetadata
Metadata
Assignees
Labels
No labels