Bug 189828
Summary: | yum always uses the network even when "-C" specified | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jon Masters <jcm> | ||||
Component: | yum | Assignee: | Jeremy Katz <katzj> | ||||
Status: | CLOSED WONTFIX | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5 | CC: | jcm, katzj | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
URL: | http://www.printk.net/~jcm/yum_fc5.strace2 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-04-25 14:37:38 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: | |||||||
Attachments: |
|
Description
Jon Masters
2006-04-24 22:07:28 UTC
is this install using the mirrorlist= directive in your /etc/yum.repos.d/*.repo files? Created attachment 128191 [details]
yum repositories
A copy of the yum repositories on an example box where yum fails to honor "-C".
This is a rawhide box, same problem occurs on an FC5 box with a fresh install.
So, according to those configs it is using mirrorlists. Test this for me: comment out the mirrorlists - just use the baseurl and see if it still contacts the network. When I make these changes on a virgin FC5 install, it no longer hits the network. However, FC5 seems to ship with mirrorlist being set for the repos and no baseurl. In that case, yum is definately not behaving correctly when specifying "-C". This is to say nothing of the speed - this box takes 34.363 seconds to run "yum -C list kernel" whereas another two boxes can take anything from 1-2 minutes. Jon. something else is going on here. if it takes 34s for that to occur then something else is broken. on my 1.2ghz laptop it only takes 5s for the same command and on my 3.4ghz desktop it takes 2.2s for that command. I've often found yum to be "slow". Fedora is running here on 2 x Powerbooks with rawhide and a vmware install on x86 - each of those takes similar amounts of time, although the vmware host is faster. On the ppc platforms, I'm getting typically 40 seconds to 1 minute and most of that is lost in IO. I did mention the strace output examples above. I'd love it if you had some suggestions :-) Jon. Hmmm... apparently the strace links aren't there. Here are two example runs: http://www.printk.net/~jcm/yum.strace2 <--- rawhide http://www.printk.net/~jcm/yum_fc5.strace2 <--- FC5 These result in network traffic, they were made last night before changing mirrorlist. Jon. 1. strace output isn't all that useful in this situation 2. you have your answer It is not possible to disable all network access when using mirrorlists in the current code. Period. With regard to the speed you're seeing I can't really tell you where the time is being lost but I'd look hard at your network connection b/c I can't recreate this even on machines with a slow connection to the net. |