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 872518 - yum downloads metadata for user when not necessary
Summary: yum downloads metadata for user when not necessary
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Patrik Kis
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-02 10:10 UTC by Karel Srot
Modified: 2014-01-21 06:25 UTC (History)
2 users (show)

Fixed In Version: yum-3.2.29-33.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 872517
Environment:
Last Closed: 2013-02-21 10:12:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0406 0 normal SHIPPED_LIVE yum bug fix and enhancement update 2013-02-20 20:50:44 UTC

Description Karel Srot 2012-11-02 10:10:41 UTC
Present on RHEL6.3 too

+++ This bug was initially created as a clone of Bug #872517 +++

Description of problem:

when yum is executed by regular user, yum downloads metadata even if the "root" metadata are up-to-date.


[root@server ~]# rpm -q yum
yum-3.2.22-40.el5
[root@server ~]# yum list bash
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Excluding Packages in global exclude list
Finished
Installed Packages
bash.i386                                         3.2-32.el5                                         installed
[root@server ~]# su - karel
[karel@server ~]$ yum list bash
Loaded plugins: product-id, security, subscription-manager
beaker-client                                                                                           28/28
beaker-harness                                                                                          35/35
qa-tools                                                                                              193/193
rhel-5                                                                                              2518/2518
rhel-5-debug                                                                                        1022/1022
Excluding Packages in global exclude list
Finished
Installed Packages
bash.i386                                         3.2-32.el5                                         installed


Probably fixed upstream with 
http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=a5e26a78e485

http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=a5e26a78e485

Comment 2 Karel Srot 2012-11-02 15:12:13 UTC
Tried to manually patched my yum. It helped a bit. The output is not the same, 
probably the 3 lines that makes the difference exist because of creating sqlite db from xml.gz. Don't know why yum doesn't copy that from the "root" metadata.

patched yum:

# yum makecache
# yum list bash
Loaded plugins: security
Installed Packages
bash.x86_64           4.1.2-8.el6              @rhel6.2-server
Available Packages
bash.x86_64           4.1.2-9.el6_2            rhel63-server  

$ yum list bash
Loaded plugins: security
beaker-client                   14/14
google-talkplugin                 1/1
qa    193/193
Installed Packages
bash.x86_64           4.1.2-8.el6              @rhel6.2-server
Available Packages
bash.x86_64           4.1.2-9.el6_2            rhel63-server

Comment 3 James Antill 2012-11-02 15:21:42 UTC
 ACKing the patch, and that it should provide better behaviour (with no regressions) ... but I'm not saying it'll be perfect (Eg. we may still download things we don't really need to, lots of changes have happened upstream to mitigate this and hopefully RHEL-7 will be much better).

Comment 9 errata-xmlrpc 2013-02-21 10:12:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0406.html


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