Bug 231543

Summary: multiple repositories with anaconda are somewhat broken
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: law, redwolfe
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-23 20:46:39 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: 150226    
Attachments:
Description Flags
anaconda dump none

Description Orion Poplawski 2007-03-08 21:42:38 UTC
Description of problem:

Have the following in kickstart:

nfs --server=saga --dir=/export/data1/fedora/core/development/i386/os
repo --name=extras
--baseurl=http://www.cora.nwra.com/fedora/extras/development/i386/
repo --name=CoRA --baseurl=http://www.cora.nwra.com/fedora/CoRPMS/development/i386/

This appears to cause anaconda not to see the core repository at all - install
complains about lots of missing packages and then fails to find a kernel
package.  This worked with FC6.

Version-Release number of selected component (if applicable):
11.2.0.31-1

Comment 1 Orion Poplawski 2007-03-08 21:42:39 UTC
Created attachment 149643 [details]
anaconda dump

Comment 2 Orion Poplawski 2007-03-14 20:28:06 UTC
Still seeing with:

anaconda-11.2.0.36-1
yum-3.1.4-1.fc7

Any other info needed?

Comment 3 Orion Poplawski 2007-03-16 20:11:30 UTC
Okay, with anaconda-11.2.0.37-1 it no longer appears that the base repository is
overridden.  But it does not seem able to find packages in the other
repositories.  e.g.:

nfs --server=saga --dir=/export/data1/fedora/core/development/i386/os
repo --name=extras
--baseurl=http://www.cora.nwra.com/fedora/extras/development/i386/
repo --name=CoRA --baseurl=http://www.cora.nwra.com/fedora/CoRPMS/development/i386/

%files
gv

which is in extras is not found.


Comment 4 Orion Poplawski 2007-03-22 17:06:03 UTC
Maybe false positive last time.  Tested again with:

anaconda-11.2.0.39-1
yum-3.1.4-1.fc7

And it can't find the base repo packages.


Comment 5 Chris Lumens 2007-03-26 15:45:50 UTC
This looks like a bug in yum that we're just now hitting.  I'm reassigning this
to yum and attaching the following comment for their benefit so they don't need
to go in and track the problem back down.

We're not downloading the repodata for any repo after the first one in our list.
 That's because after the first call to doSackSetup in yum/__init__.py,
self._pkgSack is set so the second call for the second repo immediately returns.

Comment 6 Chris Lumens 2007-03-26 20:01:15 UTC
*** Bug 231654 has been marked as a duplicate of this bug. ***

Comment 7 Orion Poplawski 2007-04-10 18:31:37 UTC
Anything I can do to help debug?  Still seeing the problem where it doesn't find
anything in the extra repos.

Comment 8 Jeremy Katz 2007-04-10 19:56:54 UTC
Have a time machine handy?  Things might actually be happier with yum 3.1.6, but
I just haven't had a round 'tuit yet this week.  I'm hoping to by the end of the
week.

If you want to try debugging, you can add an RHupdates/yum dir to your NFS share
and copy the files from /usr/lib/python2.5/site-packages/yum/* to there.  Then
add debugging in and around doRepoSetup.  It may just need to realize that if
it's passed a specific repo to setup, that it should do so and not return the
cached sack.

Comment 9 Jeremy Katz 2007-04-18 14:02:17 UTC
*** Bug 236695 has been marked as a duplicate of this bug. ***

Comment 10 Jeremy Katz 2007-04-18 23:45:19 UTC
Fixed in yum-3.1.6-2

Comment 11 Jeff Law 2007-04-19 22:22:54 UTC
Woo hoo, there's a reasonable chance virt-factory and stateless will work with
F7 now :-)

Comment 12 G.Wolfe Woodbury 2007-04-20 22:37:11 UTC
Does *not* work for me

Comment 13 Orion Poplawski 2007-04-23 16:08:42 UTC
I'm seeing this now:

Traceback (most recent call first):
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 75, in __set__
    raise ValueError('Error parsing %r: %s' % (value, str(e)))
  File "/usr/lib/anaconda/yuminstall.py", line 227, in __init__
    self.mirrorlist = mirrorlist
  File "/usr/lib/anaconda/yuminstall.py", line 453, in doConfigSetup
    repoid=ksrepo.name)
  File "/usr/lib/anaconda/yuminstall.py", line 398, in __init__
    self.doConfigSetup(root=anaconda.rootPath)
  File "/usr/lib/anaconda/yuminstall.py", line 703, in doInitialSetup
    self.ayum = AnacondaYum(anaconda)
  File "/usr/lib/anaconda/backend.py", line 220, in doRepoSetup
    anaconda.backend.doInitialSetup(anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 203, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 126, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/dispatch.py", line 225, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/text.py", line 541, in run
    (step, instance) = anaconda.dispatch.currentStep()
  File "/usr/bin/anaconda", line 954, in <module>
    anaconda.intf.run(anaconda)
ValueError: Error parsing '': URL must be http, ftp, file or https not ""

Local variables in innermost frame:
obj: extras
self: <yum.config.UrlOption object at 0x93b5fec>
e: URL must be http, ftp, file or https not ""
value:

Back in anaconda's court?  I'm happy to file a new bug if needed.

Comment 14 Jeremy Katz 2007-04-23 20:46:39 UTC
*sigh*  Yeah, but I went ahead and fixed it.  After I fixed yum, dlehman made it
so that anaconda can better handle mirrorlists... except he missed a case.  I
fixed it up and will be in tomorrow's rawhide.