Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 896532 - cleanup unnecessary yum related files from RHEV-H images
cleanup unnecessary yum related files from RHEV-H images
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node (Show other bugs)
6.5
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Fabian Deutsch
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-17 08:57 EST by Mike Burns
Modified: 2014-01-21 14:17 EST (History)
14 users (show)

See Also:
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 14:17:58 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0033 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2014-01-21 19:14:30 EST

  None (edit)
Description Mike Burns 2013-01-17 08:57:11 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:
Comment 1 Mike Burns 2013-01-17 09:40:18 EST
http://gerrit.ovirt.org/11154
Comment 10 Cheryn Tan 2013-11-07 19:26:07 EST
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 04:51:02 EST
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 14:17:58 EST
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

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