Bug 692047

Summary: RepoMDError: requested datatype primary not available
Product: [Fedora] Fedora Reporter: He Rui <rhe>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: anaconda-maint-list, awilliam, jonathan, rhe, theinric, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: anaconda_trace_hash:652786a2b3bf5c451a07bb649f5ffc381e2899af2dc87992f057f1c961d79fde
Fixed In Version: anaconda-18.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-03 19:29:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Attached traceback automatically from anaconda.
none
Attached traceback automatically from anaconda. none

Description He Rui 2011-03-30 09:46:27 UTC
The following was filed automatically by anaconda:
anaconda 15.25 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/yum/repoMDObject.py", line 180, in getData
    raise RepoMDError, "requested datatype %s not available" % type
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1559, in _retrieveMD
    thisdata = self.repoXML.getData(mdtype)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1551, in retrieveMD
    return self._retrieveMD(mdtype)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1626, in getPrimaryXML
    return self.retrieveMD('primary')
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 183, in populate
    xml = repo_get_function()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 289, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 645, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 608, in doSackSetup
    return self._getSacks(archlist=archlist, thisrepo=thisrepo)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/yuminstall.py", line 1285, in <lambda>
    self.__withFuncDo(anaconda, lambda r: self.ayum.doSackSetup(thisrepo=r.id),
  File "/usr/lib64/python2.7/site-packages/pyanaconda/yuminstall.py", line 1310, in __withFuncDo
    fn(repo)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/yuminstall.py", line 1287, in doSackSetup
    callback=SackSetupProgress(anaconda.intf))
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iw/task_gui.py", line 49, in setupRepo
    anaconda.backend.doSackSetup(anaconda, thisrepo=repo.id, fatalerrors=False)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iw/task_gui.py", line 370, in run
    if not setupRepo(self.anaconda, newRepoObj):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iw/task_gui.py", line 550, in _addRepo
    if dialog.run() in [gtk.RESPONSE_CANCEL, gtk.RESPONSE_DELETE_EVENT]:
RepoMDError: requested datatype primary not available

Comment 1 He Rui 2011-03-30 09:46:34 UTC
Created attachment 488717 [details]
Attached traceback automatically from anaconda.

Comment 2 He Rui 2011-03-30 09:48:48 UTC
Encountered this issue by accidently adding a i386 repo on x86_64 installer.

Comment 3 He Rui 2011-03-30 10:09:24 UTC
Created attachment 488728 [details]
Attached traceback automatically from anaconda.

Comment 4 He Rui 2011-03-30 10:23:51 UTC
Correction. It happened when I missed checking 'URL is a mirror list' when graphically adding a mirror url at package repository step.

Comment 5 Chris Lumens 2011-03-31 21:04:52 UTC
Seth - is this a yum exn that anaconda should be catching, or is the problem more on your end?

Comment 6 Adam Williamson 2011-09-29 06:28:18 UTC
heh, I just hit this doing the same thing hurry did. =)

Comment 7 seth vidal 2011-09-30 14:05:03 UTC
Can anyone get me the repomd.xml from this repo? B/c if a repo is lacking a primary then it is not possible to install from it.

Comment 8 Chris Lumens 2012-08-03 19:29:02 UTC
The code this bug resulted from is no longer present as of anaconda-18.3.  Please test with F18 and if you see similar problems, open a new bug.  Thanks.