Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:

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.