Bug 189828 - yum always uses the network even when "-C" specified
Summary: yum always uses the network even when "-C" specified
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL: http://www.printk.net/~jcm/yum_fc5.st...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-24 22:07 UTC by Jon Masters
Modified: 2014-01-21 22:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-25 14:37:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
yum repositories (1.30 KB, application/octet-stream)
2006-04-25 10:06 UTC, Jon Masters
no flags Details

Description Jon Masters 2006-04-24 22:07:28 UTC
Description of problem:

Yum will /always/ issue HTTP requests to the network, even when "-C" is
specified. Depending upon whether mirrors are configured, this may or may not
allow for offline use, but it always slows done access to cached use only.

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

Yum in FC5 and recent rawhide builds

How reproducible:

Very

Steps to Reproduce:
1. use yum
2.
3.
  
Actual results:

Yum wants to hit repos

Expected results:

Yum should not do that

Additional info:

Tested on ppc rawhide installs and a FC5 fresh install on vmware.

Comment 1 Seth Vidal 2006-04-25 00:13:53 UTC
is this install using the mirrorlist= directive in your /etc/yum.repos.d/*.repo
files?

Comment 2 Jon Masters 2006-04-25 10:06:16 UTC
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.

Comment 3 Seth Vidal 2006-04-25 12:17:25 UTC
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.


Comment 4 Jon Masters 2006-04-25 13:54:50 UTC
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.


Comment 5 Seth Vidal 2006-04-25 14:00:00 UTC
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.

Comment 6 Jon Masters 2006-04-25 14:13:48 UTC
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.


Comment 7 Jon Masters 2006-04-25 14:16:38 UTC
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.


Comment 8 Seth Vidal 2006-04-25 14:37:38 UTC
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.




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