Bug 491634

Summary: anaconda fails to download repomd.xml because of missing /etc/hosts
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: pjones, rmaximo, vanmeeuwen+fedora
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: 2009-03-25 17:13:09 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:
Bug Depends On:    
Bug Blocks: 476774    
Attachments:
Description Flags
anaconda.log none

Description Mark McLoughlin 2009-03-23 12:47:01 UTC
With 2009-03-22 rawhide, http installs are failing to download repomd.xml

With this patch:

     def urlgrabberFailureCB (self, obj, *args, **kwargs):
-        log.warning("Try %s/%s for %s failed" % (obj.tries, obj.retry, obj.url))
+        log.warning("Try %s/%s for %s failed: %s" % (obj.tries, obj.retry, obj.url, obj.exception))

the error I was seeing is:

  Try 1/10 for http://ftp.heanet.ie/mirrors/fedora/linux/development/x86_64/os/repodata/repomd.xml failed: [Errno 4] IOError: <urlopen error [Errno 2] No such file or directory>

Downloading the url with wget works fine from the anaconda shell

Running strace the only interesting thing I could see was:

   open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = -1 ENOENT (No such file or directory)

Sure enough, no /etc/hosts exists and touching it before retrying makes the install proceed just fine.

Comment 1 Chris Lumens 2009-03-23 14:30:37 UTC
Can you attach /tmp/anaconda.log to this bug report?

Comment 2 Mark McLoughlin 2009-03-23 15:23:59 UTC
Created attachment 336305 [details]
anaconda.log

Okay, I just reproduced - here's the log

At around 15:15 in the log I touched /etc/hosts and hit Retry

Comment 3 David Cantrell 2009-03-25 00:14:52 UTC
Should be working in the next build of anaconda, which should be the F-11 beta release.

Comment 4 Mark McLoughlin 2009-03-25 09:03:10 UTC
For reference, the fix was:

http://git.fedorahosted.org/git/anaconda.git?p=anaconda.git;a=commitdiff;h=60bb9f9957

Comment 5 Mark McLoughlin 2009-03-25 17:13:09 UTC
Confirmed fixed with 20090325 rawhide