Bug 1411349 - dnf makes wrong assumptions about metalinks
dnf makes wrong assumptions about metalinks
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
25
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: rpm-software-management
Fedora Extras Quality Assurance
: Triaged
Depends On:
Blocks: 578256
  Show dependency treegraph
 
Reported: 2017-01-09 09:33 EST by Daniel Mach
Modified: 2017-02-10 11:00 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-02-10 11:00:00 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Mach 2017-01-09 09:33:51 EST
When repo config contains:
metalink=...
but there's no 'metalink' string in the URL,
dnf/librepo considers the metalink address a mirrorlist and fails on unknown URL:

error: Curl error (6): Couldn't resolve host name for http://<metalink xmlns:mm0="http://fedorahosted.org/mirrormanager" xmlns="http://www.metalinker.org/" version="3.0" generator="mirrormanager" type="dynamic" pubdate="Mon, 09 Jan 2017 14:22:50 GMT">/repodata/repomd.xml [Could not resolve host: <metalink xmlns:mm0="http] (http://<metalink xmlns:mm0="http://fedorahosted.org/mirrormanager" xmlns="http://www.metalinker.org/" version="3.0" generator="mirrormanager" type="dynamic" pubdate="Mon, 09 Jan 2017 14:22:50 GMT">/repodata/repomd.xml).

This is probably caused by using an obsolete librepo feature:
http://rpm-software-management.github.io/librepo/lib.html#librepo.LRO_MIRRORLIST

Could you replace it with LRO_MIRRORLISTURL and LRO_METALINKURL?
Comment 1 Daniel Mach 2017-01-09 09:52:52 EST
Clarification on why to fix this issue:
1) migrate dnf from deprecated to supported librepo features
2) support dynamically generated metalinks (I'm working on something like a mirror manager for composes) that have no 'metalink' in URL
Comment 3 Jaroslav Mracek 2017-02-10 11:00:00 EST
Bugs fixed in version of dnf-2.0.1-1.

Note You need to log in before you can comment on or make changes to this bug.