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 797996

Summary: new configuration for rhsm.manage_repos should be exposed
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: dgoodwin, skallesh, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:06:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 738066    

Description John Sefler 2012-02-27 18:31:19 UTC
Description of problem:
The new rhsm.manage_repos configuration demonstrated in sprint 38 review to support RFE bug #767620 needs to be added to a default list so that it will show up as a configurable option.  The reproduce steps shown below cannot yet find nor set it.


Version-Release number of selected component (if applicable):
[root@jsefler-r63-server ~]# rpm -q subscription-manager
subscription-manager-0.99.8-1.git.7.913ca2f.el6.x86_64

How reproducible:


Steps to Reproduce:
[root@jsefler-r63-server ~]# grep manage_repos /etc/rhsm/rhsm.conf
[root@jsefler-r63-server ~]# 
[root@jsefler-r63-server ~]# subscription-manager config --list | grep manage_repos
[root@jsefler-r63-server ~]# 
[root@jsefler-r63-server ~]# subscription-manager config --rhsm.manage_repos=1
Usage: subscription-manager config [OPTIONS]

subscription-manager: error: no such option: --rhsm.manage_repos[root@jsefler-r63-server ~]# 
[root@jsefler-r63-server ~]# subscription-manager config --list
[server]
   ca_cert_dir = [/etc/rhsm/ca/]
   hostname = jsefler-f14-candlepin.usersys.redhat.com
   insecure = [0]
   port = [8443]
   prefix = [/candlepin]
   proxy_hostname = []
   proxy_password = []
   proxy_port = []
   proxy_user = []
   repo_ca_cert = [/etc/rhsm/ca/redhat-uep.pem]
   ssl_verify_depth = [3]

[rhsm]
   baseurl = https://cdn.redhat.com
   ca_cert_dir = [/etc/rhsm/ca/]
   consumercertdir = /etc/pki/consumer
   entitlementcertdir = /etc/pki/entitlement
   hostname = [localhost]
   insecure = [0]
   port = [8443]
   prefix = [/candlepin]
   productcertdir = /etc/pki/product
   proxy_hostname = []
   proxy_password = []
   proxy_port = []
   proxy_user = []
   repo_ca_cert = [/etc/rhsm/ca/redhat-uep.pem]
   ssl_verify_depth = [3]

[rhsmcertd]
   ca_cert_dir = [/etc/rhsm/ca/]
   certfrequency = 240
   healfrequency = 1440
   hostname = [localhost]
   insecure = [0]
   port = [8443]
   prefix = [/candlepin]
   proxy_hostname = []
   proxy_password = []
   proxy_port = []
   proxy_user = []
   repo_ca_cert = [/etc/rhsm/ca/redhat-uep.pem]
   ssl_verify_depth = [3]

[] - Default value in use

  
Actual results:
Could not find nor set rhsm.manage_repos


Expected results:
Expected each of those reproduce steps to find or set the rhsm.manage_repos configuration

Additional info:

Comment 1 Devan Goodwin 2012-03-02 15:13:16 UTC
Fixed in subscription-manager.git: 2cca158971efdfce9621a1de61b0874907357d56

You should now see manage_repos = 1 in the [rhsm] section of a fresh RPM installation of subscription-manager.

Comment 3 Shwetha Kallesh 2012-03-05 07:36:56 UTC
Moving the bug to verified.

RPM used:

[root@dhcp201-162 ~]# rpm -qa | grep subscription-manager
subscription-manager-0.99.8-1.git.16.f7ed3d6.el6.x86_64
subscription-manager-migration-0.99.8-1.git.16.f7ed3d6.el6.x86_64
subscription-manager-firstboot-0.99.8-1.git.16.f7ed3d6.el6.x86_64
subscription-manager-migration-data-1.12.1-1.git.4.7b6cf92.el6.noarch
subscription-manager-gnome-0.99.8-1.git.16.f7ed3d6.el6.x86_64
subscription-manager-debuginfo-0.99.8-1.el6.x86_64


[root@dhcp201-162 ~]# subscription-manager config --rhsm.manage_repos=0

[root@dhcp201-162 ~]# cat /etc/rhsm/rhsm.conf | grep manage_repo
manage_repos = 0

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