Red Hat Bugzilla – Bug 896532
cleanup unnecessary yum related files from RHEV-H images
Last modified: 2014-01-21 14:17:58 EST
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:
http://gerrit.ovirt.org/11154
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.
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.
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