Bug 1328192

Summary: metalink not working for fedora 21
Product: [Fedora] Fedora Reporter: Laurent GUERBY <laurent>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 22CC: cfergeau, jsilhan, laurent, mmraka, packaging-team-maint
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-19 07:49:26 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 Laurent GUERBY 2016-04-18 16:14:13 UTC
Description of problem:

yum with metalink repo cannot find fedora 21 packages

Version-Release number of selected component (if applicable):


How reproducible:
always


Steps to Reproduce:
1.
2.
3.

[root@gcc2-power8 ~]# yum clean all
[root@gcc2-power8 ~]# yum update
Loaded plugins: etckeeper, langpacks
atX.X                                                                                                                                                                                                                  | 1.1 kB  00:00:00     
fedora/21/ppc64le/metalink                                                                                                                                                                                             | 1.0 kB  00:00:00     
http://dl.fedoraproject.org/pub/fedora-secondary/releases/21/Everything/ppc64le/os/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.


 One of the configured repositories failed (Fedora 21 - ppc64le),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).
...
[root@gcc2-power8 ~]# cat /etc/yum.repos.d/fedora.repo 
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False


Actual results:

repo not found

Expected results:

metalink redirecting to the archived repo


Additional info:
More recent fedora are not stable on this hardware and crash after only a few hours of use, that's why we're stuck with fedora 21

Comment 1 Michael Mráka 2016-04-19 07:49:26 UTC
Fedora 21 is EOL.

http://dl.fedoraproject.org/pub/fedora-secondary/releases/21/README

ATTENTION
======================================
The contents of this directory have been moved to our archives available at:

http://archives.fedoraproject.org/pub/archive/fedora-secondary/

If you are having troubles finding something there please stop by #fedora-admin on irc.freenode.net

Comment 2 Laurent GUERBY 2016-04-20 08:56:35 UTC
Reopened here: 

https://fedorahosted.org/fedora-infrastructure/ticket/5250