Bug 1392392

Summary: yum repolist -C takes longer than yum repolist
Product: Red Hat Enterprise Linux 7 Reporter: Oliver Ilian <oliver>
Component: yumAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: james.antill, mdomonko, oliver
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-24 17:40:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Oliver Ilian 2016-11-07 12:32:35 UTC
Description of problem:
If you try to get a repolist via "yum repolist" it takes longer to display the repos from the cache than without the cache option

Version-Release number of selected component (if applicable):
yum-3.4.3-150.el7.noarch
yum-rhn-plugin-2.0.1-6.el7.noarch

Steps to Reproduce:
1. run "yum repolist" to ensure the repo is udpated
2. run: time yum repolist
output:
real	0m1.464s
user	0m0.350s
sys	0m0.061s

3.  run: time yum repolist -C
real	0m3.498s
user	0m3.300s
sys	0m0.157s


Actual results:
yum repolist -C takes 2.5 times the time of yum repolist to display the output of the repo list

Expected results:
yum repolist -C should be much faster than yum repolist

Additional info:
The repolist contains of:
17 Satellite channels
7 yum repos

Comment 2 Michal Domonkos 2016-11-22 12:22:20 UTC
I can't reproduce this.  I'm getting roughly the same times for both with and without -C (it shouldn't be that much faster with -C anyway).

Do you still experience this?  If so, could you please run:

1) yum clean all
2) yum repolist
3) yum repolist --verbose and attach the output
4) yum repolist -C --verbose and attach the output

Comment 3 Oliver Ilian 2016-11-22 15:54:30 UTC
Created attachment 1222756 [details]
yum repolist

Comment 4 Oliver Ilian 2016-11-22 15:55:03 UTC
Created attachment 1222757 [details]
yum repolist -C

Comment 5 Oliver Ilian 2016-11-22 15:58:45 UTC
I have found the reason for the delay. If I only have satellite channels , yum repolist -C is double as fast as yum repolist .

If I add a local yum repo additional to the satellite channels, the output looks really strange when using the -C option, and the duration is double as long as yum repolist (see output in attachment)

Comment 8 Michal Domonkos 2016-11-22 16:27:57 UTC
Thanks for the data, I'll take a look.