Bug 200693

Summary: mirrorlist download failures are silently ignored
Product: [Fedora] Fedora Reporter: Daniel Hokka Zakrisson <daniel>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-19 19:39:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch showing where the problem is none

Description Daniel Hokka Zakrisson 2006-07-31 01:23:25 UTC
Description of problem:
If a mirrorlist fails to download and it's the only mirrorlist for that repo
(such as the default .repos from fedora-release), yum will fail with the
seemingly incorrect "Cannot find a valid baseurl for repo: <repo>". Even with
-d9 -e9, there is no indication of the mirrorlist download failing.


Version-Release number of selected component (if applicable):
yum-2.6.1-0.fc5
yum-2.9.3-2


How reproducible:
Always


Steps to Reproduce:
rm -f /etc/resolv.conf
iptables -I INPUT -j REJECT
etc.

  
Actual results:
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core


Expected results:
At the very least a warning with the URLGrabError exception for diagnostics.


Additional info:
The attached patch doesn't do the Right Thing(tm), but I couldn't figure out how
to use a Logger from getMirrorList.

Comment 1 Daniel Hokka Zakrisson 2006-07-31 01:23:25 UTC
Created attachment 133298 [details]
Patch showing where the problem is

Comment 2 Seth Vidal 2006-08-19 19:39:58 UTC
Fixed up in cvs - I added something similar to your patch.

thanks!