Bug 672342 - Yum doesn't handle mirrormanager errors gracefully
Summary: Yum doesn't handle mirrormanager errors gracefully
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 19
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-24 21:40 UTC by Jared Smith
Modified: 2014-10-03 12:59 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-03 12:59:32 UTC
Type: ---


Attachments (Terms of Use)

Description Jared Smith 2011-01-24 21:40:11 UTC
Description of problem:

I've upgraded my machine to rawhide, but the updates-released-f15 repo doesn't exist yet.  I added skip_if_unavailable=1 to the repo definition, but yum doesn't handle it gracefully.

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

yum-3.2.29-2.fc15.noarch

How reproducible:

Very

Steps to Reproduce:
1. Upgrade to Rawhide
2. Enable the updates repo, but set "skip_if_unavailable=1", as show below
3. Watch yum complain
  
Actual results:

[root@penaltybox yum.repos.d]# yum check-update
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Adding en_US to language list
Loading mirror speeds from cached hostfile
updates/metalink                                                                     |  18 kB     00:00     
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=updates-released-f15&arch=i386 error was 
No repomd file
Error: File /var/cache/yum/i386/15/updates/metalink.xml does not exist


Expected results:

Yum should skip the unavailable repo

Additional info:

[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
skip_if_unavailable=1

Comment 1 Joshua Wulf 2012-10-19 00:26:01 UTC
It's fixed in yum-3.4.3-29 in F17, but you probably won't get that package for F15 now that's out of support.

See: https://bugzilla.redhat.com/show_bug.cgi?id=842031

Comment 2 Fedora End Of Life 2013-04-03 17:34:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19


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