Bug 767620

Summary: [RFE] subscription-manager should have a option that when set prevents the download / install of "redhat.repo"
Product: Red Hat Enterprise Linux 6 Reporter: Eric Sammons <esammons>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2CC: bkearney, dgoodwin, jsefler, skallesh, wpoteat
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Cause Subscription manager assumed that users wanted content from the Subscription Service. Consequence Usrs who consumed content from other sources got failtures from yum, and had to disable the repos manually. Change A new configuration option was added which will disable creating repo files. This option, manage_repos = 0, is set in the file /etc/rhsm/rhsm.conf. Result Users can use subscription-manager for subscription management only, and not use the content access features. Note: this is not the same as the feature request was fulfilled.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:04:41 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 Eric Sammons 2011-12-14 14:19:15 UTC
Description of problem:
Many customers support their own on premise repos using some repo replication process.  This allows the customer greater control of system builds and packages which their on site sys admins will support.

Today when subscription-manager runs it will install the appropriate repos; this may not be desirable in all environments (customers that manage their own on premise repos).  Therefore as a system admin I would like to be able to set a value in /etc/rhsm/rhsm.conf to disable the installation of "Red Hat Repos".  The registered / installed system should only reference my on premise corporate repos.

Comment 1 Devan Goodwin 2012-02-06 19:07:29 UTC
Implemented in subscription-manager.git master: af2a53b8236907ca1681980796aa711dcf9dc69b

Will appear in subscription-manager-0.99.7-1. Note that this has not been cherry-picked to RHEL 5.8 branches.

To use add "manage_repos = 0" to the [rhsm] section of /etc/rhsm/rhsm.conf.

Comment 2 Devan Goodwin 2012-02-06 19:08:24 UTC
Behavior-wise notes for QE etc.

Once set, the redhat.repo file will be deleted as soon as rhsmcertd runs again. At no point should it get recreated so long as manage_repos = 0.

If you run subscription-manager repos --list you should see a warning that repository management is disabled.

Comment 5 Shwetha Kallesh 2012-02-23 12:14:14 UTC
Moving 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]# service rhsmcertd restart
Stopping rhsmcertd                                         [  OK  ]
Starting rhsmcertd 2 1440                                  [  OK  ]
[root@dhcp201-166 yum.repos.d]# ll
total 0
[root@dhcp201-166 yum.repos.d]# subscription-manager repos --list
Repositories disabled by configuration.

Comment 6 Bryan Kearney 2012-05-22 20:40:28 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    Subscription manager assumed that users wanted content from the Subscription Service.
Consequence
   Usrs who consumed content from other sources got failtures from yum, and had to disable the repos manually.
Change
    A new configuration option was added which will disable creating repo files. This option, manage_repos = 0, is set in the file /etc/rhsm/rhsm.conf.
Result
    Users can use subscription-manager for subscription management only, and not use the content access features.
    Note: this is not the same as the feature request was fulfilled.

Comment 8 errata-xmlrpc 2012-06-20 13:04:41 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