Bug 797996 - new configuration for rhsm.manage_repos should be exposed
Summary: new configuration for rhsm.manage_repos should be exposed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 738066
TreeView+ depends on / blocked
 
Reported: 2012-02-27 18:31 UTC by John Sefler
Modified: 2012-06-20 13:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 13:06:13 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0804 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2012-06-19 19:51:31 UTC

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


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