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 896532

Summary: cleanup unnecessary yum related files from RHEV-H images
Product: Red Hat Enterprise Linux 6 Reporter: Mike Burns <mburns>
Component: ovirt-nodeAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5CC: acathrow, bsarathy, cboyle, cshao, fdeutsch, gouyang, hadong, huiwa, jboggs, leiwang, lnovich, mburns, ovirt-maint, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-3.0.0-6.el6 Doc Type: Bug Fix
Doc Text:
Files used by yum are currently not being cleaned up, leaving redundant files on the system. Some of the areas affected were: /var/lib/yum/history /var/lib/yum/yumdb /etc/yum.repos.d This has been fixed by disabling all yum repos in /etc/yum.repos.d rather than just fedora.repo and fedora-updates.repo, and then remove the yum database information.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 19:17:58 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 Mike Burns 2013-01-17 13:57:11 UTC
Description of problem:
We are currently not cleaning up files used by yum.

Some of the areas:

/var/lib/yum/history
/var/lib/yum/yumdb
/etc/yum.repos.d

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

How reproducible:
always

Steps to Reproduce:
1.boot rhev-h
2.look under /var/yum
3.
  
Actual results:
files exist that are useless in normal operation

Expected results:
files should be cleaned up to minimize size

Additional info:

Comment 1 Mike Burns 2013-01-17 14:40:18 UTC
http://gerrit.ovirt.org/11154

Comment 10 Cheryn Tan 2013-11-08 00:26:07 UTC
This bug is currently attached to errata RHBA-2013:15277. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 11 wanghui 2013-11-11 09:51:02 UTC
Reproduce this issue firstly:
Test version:
rhevh-6.4-20130912.0.el6_4.iso
ovirt-node-2.5.0-17.el6_4.8.noarch

Test steps:
1. Clean install rhevh6.4.
2. Check /var/lib/yum/*
3. Check /etc/yum.repo.d/*

Test result:
1. After step2, it shows as the follows.
#ls -l /var/lib/yum/
total 0
drwxrwxr-x.  3 root root  80 Sep 12 17:00 history
drwxrwxr-x.  2 root root  60 Sep 12 17:00 rpmdb-indexes
drwxrwxr-x. 30 root root 600 Sep 12 17:00 yumdb
2. After step3, it shows as the follows.
#ls -l /etc/yum.repos.d/*
total 12
-rw-rw-r--. 1 root root  20 Sep 12 17:01 /etc/yum.repos.d/fedora-updates.repo
-rw-rw-r--. 1 root root  19 Sep 12 17:01 /etc/yum.repos.d/fedora.repo
-rw-r--r--. 1 root root 529 Jan 29  2013 /etc/yum.repos.d/rhel-source.repo

Verify this issue:
Test version:
rhevh-6.5-20131031.1.0.iso
ovirt-node-3.0.1-7.el6.noarch

Test steps:
1. Clean install rhevh-6.5-20131031.1.0.iso.
2. Check /var/lib/yum/*
3. Check /etc/yum.repo.d/*

Test result:
1. After step2, it shows as the follows.
#ls -l /var/lib/yum/
total 0
2. After step3, it shows as the follows.
#ll /etc/yum.repos.d/*
total 4
-rw-r--r--. 1 root root 529 Oct 30 15:05 rhel-source.repo

There is no files in /var/lib/yum/ and there also has no fedora-updates.repo and fedora.repo files in ovirt-node-3.0.1-7.el6.noarch. This bug is fixed in ovirt-node-3.0.1-7.el6.noarch. So change the status from ON_QA to VERIFIED.

Comment 13 errata-xmlrpc 2014-01-21 19:17:58 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-2014-0033.html