Bug 491634 - anaconda fails to download repomd.xml because of missing /etc/hosts
Summary: anaconda fails to download repomd.xml because of missing /etc/hosts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F11Beta, F11BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2009-03-23 12:47 UTC by Mark McLoughlin
Modified: 2009-03-25 17:13 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-03-25 17:13:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
anaconda.log (43.57 KB, text/plain)
2009-03-23 15:23 UTC, Mark McLoughlin
no flags Details

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 5 Mark McLoughlin 2009-03-25 17:13:09 UTC
Confirmed fixed with 20090325 rawhide


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