Bug 999940

Summary: skip_if_unavailable not always honored
Product: [Fedora] Fedora Reporter: Steve Grubb <sgrubb>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, packaging-team-maint, tla, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-26 08:24:15 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 Steve Grubb 2013-08-22 12:02:56 UTC
Description of problem:
I have skip_if_unavailable=1 set for an internal coverity repo. If I am not logged in to our vpn, occasionally an update fails for the following reason:

http://cov01.lab.eng.brq.redhat.com/coverity/install/covscan/fedora/19/x86_64/repodata/ee35c3205ce6ead9b1ffc767f5f02757e993d2e6945a4c21989c53537ae522fe-filelists.sqlite.bz2: [Errno 14] curl#6 - "Could not resolve host: cov01.lab.eng.brq.redhat.com; No address associated with hostname"
Trying other mirror.
Error: failure: repodata/ee35c3205ce6ead9b1ffc767f5f02757e993d2e6945a4c21989c53537ae522fe-filelists.sqlite.bz2 from covscan-fedora: [Errno 256] No more mirrors to try.
       http://cov01.lab.eng.brq.redhat.com/coverity/install/covscan/fedora/19/x86_64/repodata/ee35c3205ce6ead9b1ffc767f5f02757e993d2e6945a4c21989c53537ae522fe-filelists.sqlite.bz2: [Errno 14] curl#6 - "Could not resolve host: cov01.lab.eng.brq.redhat.com; No address associated with hostname"

skip_if_unavailable should consistently skip this repo. I don't know why some updates are fine and some end like this. "yum check-update" runs fine. "yum -y update" didn't.

Version-Release number of selected component (if applicable):
yum-3.4.3-106.fc19.noarch

How reproducible:
intermittently

Comment 1 Zdeněk Pavlas 2013-08-26 08:24:15 UTC
This is a known bug (BZ 852643).  skip-if-unavailable works only at repository setup time.  In this case the local copy was valid, so the repo was not disabled. Then, during depsolving, a file dependency needed to be resolved. Yum tried to download filelists for all enabled repositories, including this one.  It's considered a fatal error when depsolver can't access filelists. You can only work this around by something like:

[coverity]
...
skip_if_unavailable=1
mdpolicy=group:all