Bug 2141840

Summary: dnf should try a different mirror if it encounters a mirror with a certificate problem
Product: Red Hat Enterprise Linux 8 Reporter: Jonathan Kamens <jik>
Component: librepoAssignee: David Cantrell <dcantrell>
Status: NEW --- QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: medium    
Version: CentOS StreamCC: bstinson, james.antill, jcastran, jwboyer, mcurlej, tbajer
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 2022-11-10 20:47:18 UTC
dnf-makecache.service logs:

Nov 10 13:38:03 jik4.kamens.us dnf[684995]: Errors during downloading metadata for repository 'epel':
Nov 10 13:38:03 jik4.kamens.us dnf[684995]:   - Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://epel.mirror.constant.com/8/Everything/x86_64/repodata/repomd.xml [SSL certificate problem: certificate has expired]
Nov 10 13:38:03 jik4.kamens.us dnf[684995]: Error: Failed to download metadata for repo 'epel': Cannot download repomd.xml: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://epel.mirror.constant.com/8/Everything/x86_64/repodata/repomd.xml [SSL certificate problem: certificate has expired]
Nov 10 13:38:03 jik4.kamens.us systemd[1]: dnf-makecache.service: Main process exited, code=exited, status=1/FAILURE
Nov 10 13:38:03 jik4.kamens.us systemd[1]: dnf-makecache.service: Failed with result 'exit-code'.
Nov 10 13:38:03 jik4.kamens.us systemd[1]: Failed to start dnf makecache.

It shouldn't give up if there's an SSL certificate error with a mirror. It should switch to a different mirror.