Bug 1775184
| Summary: | dnf/yum commands fail if fails if mirrorlist cannot be found | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Paul Dwyer <pdwyer> |
| Component: | dnf | Assignee: | amatej |
| Status: | CLOSED ERRATA | QA Contact: | Luca Berton <lberton> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.1 | CC: | amatej, fedoraproject.org, james.antill, lberton, mdomonko, nsella, pdwyer |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libdnf-0.48.0-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 01:52:20 UTC | 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1825061 | ||
|
Description
Paul Dwyer
2019-11-21 14:32:22 UTC
I have created PRs to fix this: https://github.com/rpm-software-management/librepo/pull/184 https://github.com/rpm-software-management/libdnf/pull/911 And some tests: https://github.com/rpm-software-management/ci-dnf-stack/pull/804 (the second test will pass even with the current version, but not because mirrorlist is preferred over baseurl, but because libdnf doesn't even pass the baseurl to librepo, my PR fixes this) Proposing AC: - When dnf is using a repository with both baseurl and mirrorlist specified and the mirrorlist file cannot be found, baseurl is used as a fallback. - When dnf is using a repository with both baseurl and mirrorlist specified and all the mirrorlist urls are invalid, baseurl is used as a fallback. I have realized my previous PR wasn't sufficient so here is a second part: https://github.com/rpm-software-management/librepo/pull/189 Also extended the tests PR with new missed cases (mirrorlist file cannot be found): https://github.com/rpm-software-management/ci-dnf-stack/pull/804 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (yum bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4510 |