Bug 781510

Summary: 'subscription-manager clean' should delete redhat.repo
Product: Red Hat Enterprise Linux 6 Reporter: Alex Wood <awood>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: jsefler, skallesh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:05:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 738066    

Description Alex Wood 2012-01-13 16:06:59 UTC
Description of problem:
Running a 'subscription manager clean' does not delete /etc/yum.repos.d/redhat.repo.

Version-Release number of selected component (if applicable): subscription-manager-0.99.4

How reproducible: Always

Steps to Reproduce:
1. Make sure that there is no /etc/yum.repos.d/redhat.repo file.
2. Run a 'subscription-manager repos --list'.  In the current version this command will create a redhat.repo file if one does not already exist.
3. Run a 'subscription-manager clean'.
  
Actual results: The redhat.repo file remains in /etc/yum.repos.d/

Expected results: The file should be removed.

Comment 2 Alex Wood 2012-01-17 21:59:10 UTC
Committed df7dd754c1f012afbaef58ffab47e34c588425d4

subscription-manager 0.99.4+

Comment 3 Shwetha Kallesh 2012-02-23 11:16:10 UTC
Moving the bug to verified.


RPM used:

[root@dhcp201-166 yum.repos.d]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.99.8-1.el6.x86_64
subscription-manager-0.99.8-1.el6.x86_64
subscription-manager-migration-0.99.8-1.el6.x86_64
subscription-manager-migration-data-1.12-1.el6.noarch
subscription-manager-debuginfo-0.99.8-1.el6.x86_64


[root@dhcp201-166 yum.repos.d]# ll
total 4
-rw-r--r--. 1 root root 189 Feb 23 11:13 redhat.repo
[root@dhcp201-166 yum.repos.d]# subscription-manager clean
All local data removed
[root@dhcp201-166 yum.repos.d]# ll
total 0

Comment 5 errata-xmlrpc 2012-06-20 13:05:16 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-2012-0804.html