Bug 1395695

Summary: dnf metalink provides wrong mirror URLs
Product: [Fedora] Fedora Reporter: Christoph Müllner <christophm30>
Component: distributionAssignee: Václav Pavlín <vpavlin>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: adrian, dennis, kevin
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-16 16:20:50 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:

Description Christoph Müllner 2016-11-16 13:09:57 UTC
Description of problem:

On my aarch64 machine (running Fedora 24 (upgraded from a Fedora 21 installation)) the installation of debuginfo
packages does not work, because the configured yum/dnf metalink provides wrong mirror URLs.

The metalink in use is:
http://mirrors.fedoraproject.org/metalink?repo=fedora-debug-24&arch=aarch64

It provides mirrors of the following style:
https://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml

Expected (working) style would be:
https://dl.fedoraproject.org/pub/fedora-secondary/releases/24/Everything/aarch64/debug/tree/repodata/repomd.xml

A workaround is to comment the metalink line in /etc/yum.repos.d/fedora.repo and use this baseurl line in the [fedora-debuginfo] section:
baseurl=https://dl.fedoraproject.org/pub/fedora-secondary/releases/24/Everything/aarch64/debug/tree

How reproducible: simply install glibc debuginfo

dnf -v debuginfo-install glibc
cachedir: /var/cache/dnf
Loaded plugins: protected_packages, generate_completion_cache, builddep, copr, Query, debuginfo-install, system-upgrade, noroot, needs-restarting, config-manager, download, playground, reposync
DNF version: 1.1.10
enabling fedora-debuginfo repository
enabling updates-debuginfo repository
repo: using cache for: updates-debuginfo
not found deltainfo for: Fedora 24 - aarch64 - Updates - Debug
not found updateinfo for: Fedora 24 - aarch64 - Updates - Debug
error: Status code: 404 for https://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (https://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
error: Status code: 404 for http://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (http://pubmirror1.math.uh.edu/fedora-buffet/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
error: Status code: 404 for https://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (https://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
error: Status code: 404 for http://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml (http://dl.fedoraproject.org/pub/fedora-secondary/development/24/Everything/aarch64/debug/tree/repodata/repomd.xml).
Cannot download 'http://mirrors.fedoraproject.org/metalink?repo=fedora-debug-24&arch=aarch64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
Error: Failed to synchronize cache for repo 'fedora-debuginfo'

This might be related to the issue found here:
https://pagure.io/fedora-infrastructure/issue/5394