Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1177502

Summary: MetadataError: Failed to synchronize cache for repo 'rawhide' from 'https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64': Cannot prepare internal mirrorlist: Curl error: Couldn't resolve host name for https://mirrors.fedoraproject.org/m...
Product: [Fedora] Fedora Reporter: A.J. Werkman <aj.werkman>
Component: anacondaAssignee: David Shea <dshea>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, g.kaviyarasu, jonathan, knight, mkolman, mruckman, satellitgo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:1c3b6cced3bd431c5a3f1d95e361138ae0f8ff0a54edbf6ffa813fd0e19aac4b
Fixed In Version: anaconda-22.14-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-18 14:51:17 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: 1043123    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description A.J. Werkman 2014-12-28 09:55:33 UTC
Description of problem:
Error occures at the language selection screen without any user interaction.

Version-Release number of selected component:
anaconda-22.13-1

The following was filed automatically by anaconda:
anaconda 22.13-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/dnfpayload.py", line 470, in _sync_metadata
    raise packaging.MetadataError(str(e))
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/dnfpayload.py", line 592, in gatherRepoMetadata
    map(self._sync_metadata, self._base.repos.iter_enabled())
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/__init__.py", line 1236, in _runThread
    payload.gatherRepoMetadata()
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
MetadataError: Failed to synchronize cache for repo 'rawhide' from 'https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64': Cannot prepare internal mirrorlist: Curl error: Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-rawhide-x86_64 quiet
dnf.rpm.log:    Dec 28 09:43:48 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.18.1-2.fc22.x86_64
product:        Fedora"
release:        Cannot get release name.
type:           anaconda
version:        Fedora

Comment 1 A.J. Werkman 2014-12-28 09:55:36 UTC
Created attachment 973687 [details]
File: anaconda-tb

Comment 2 A.J. Werkman 2014-12-28 09:55:37 UTC
Created attachment 973688 [details]
File: anaconda.log

Comment 3 A.J. Werkman 2014-12-28 09:55:38 UTC
Created attachment 973689 [details]
File: dnf.log

Comment 4 A.J. Werkman 2014-12-28 09:55:39 UTC
Created attachment 973690 [details]
File: environ

Comment 5 A.J. Werkman 2014-12-28 09:55:40 UTC
Created attachment 973691 [details]
File: lsblk_output

Comment 6 A.J. Werkman 2014-12-28 09:55:41 UTC
Created attachment 973692 [details]
File: nmcli_dev_list

Comment 7 A.J. Werkman 2014-12-28 09:55:42 UTC
Created attachment 973693 [details]
File: os_info

Comment 8 A.J. Werkman 2014-12-28 09:55:44 UTC
Created attachment 973694 [details]
File: program.log

Comment 9 A.J. Werkman 2014-12-28 09:55:46 UTC
Created attachment 973695 [details]
File: storage.log

Comment 10 A.J. Werkman 2014-12-28 09:55:48 UTC
Created attachment 973696 [details]
File: syslog

Comment 11 A.J. Werkman 2014-12-28 09:55:49 UTC
Created attachment 973697 [details]
File: ifcfg.log

Comment 12 A.J. Werkman 2014-12-28 09:55:50 UTC
Created attachment 973698 [details]
File: packaging.log

Comment 13 A.J. Werkman 2014-12-28 10:25:24 UTC
On the network there is no dhcp. So I would-be expect a network configuration screen.

Comment 14 Robert Knight 2014-12-29 13:47:02 UTC
Another user experienced a similar problem:

During the startup of an installation of the F22 nightly 20141222, the DHCP timed out.  At this point, synchronization with a repo's cache will not work.  The installer crashed with "An unknown error occurred".

addons:         com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-rawhide-x86_64 quiet
dnf.rpm.log:    Dec 29 13:23:30 INFO --- logging initialized ---
hashmarkername: anaconda
kernel:         3.18.1-2.fc22.x86_64
package:        anaconda-22.13-1
product:        Fedora"
reason:         MetadataError: Failed to synchronize cache for repo 'rawhide' from 'https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64': Cannot prepare internal mirrorlist: Curl error: Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
release:        Cannot get release name.
version:        Fedora

Comment 15 Mike Ruckman 2015-01-02 23:35:08 UTC
Another user experienced a similar problem:

Attempt a text based installation without a network connection configured and anaconda will crash.

addons:         com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-rawhide-i386 quiet inst.text
dnf.rpm.log:    Jan 02 23:31:26 INFO --- logging initialized ---
hashmarkername: anaconda
kernel:         3.18.1-2.fc22.i686
package:        anaconda-22.13-1
product:        Fedora"
reason:         MetadataError: Failed to synchronize cache for repo 'rawhide' from 'https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=i386': Cannot prepare internal mirrorlist: Curl error: Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=i386 [Could not resolve host: mirrors.fedoraproject.org]
release:        Cannot get release name.
version:        Fedora

Comment 16 David Shea 2015-01-06 15:30:54 UTC
*** Bug 1178932 has been marked as a duplicate of this bug. ***

Comment 17 David Shea 2015-01-06 15:46:00 UTC
RE: alpha blocking (from the dupe), yeah, that seems fair. Should it block alpha or beta? I do not know.

It sounds like this will occur any time a netinst boot image is used, and anaconda starts without network up. The fix will probably be to do whatever yumpayload.py does to handle this kind of thing.