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 1272203

Summary: When the value of manage_repos is blank, the output of 'repos --list' is not reasonable.
Product: Red Hat Enterprise Linux 6 Reporter: J.C. Molet <jmolet>
Component: python-rhsmAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: low    
Version: 6.8CC: alikins, bcourt, bkearney, crog, csnyder, jmolet, jsefler, qianzhan, wpoteat
Target Milestone: pre-dev-freezeKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1251853 Environment:
Last Closed: 2016-05-10 20:37:56 UTC Type: Bug
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: 1251853    
Bug Blocks:    

Comment 2 Barnaby Court 2015-11-16 20:48:05 UTC
We should either report that we are using the default or error because the config is bad.

Comment 4 qianzhan 2016-01-11 05:24:11 UTC
Verified.

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

subscription-manager: 1.16.6-1.el6
python-rhsm: 1.16.5-1.el6


1. Unset manage_repos field and yum considers using managed repositories as default with square brackets:

[root@dhcp-128-64 ~]# subscription-manager register 
Registering to: samserv.redhat.com:443/sam/api
Username: admin
Password: 
The system has been registered with ID: 264d5fb6-d468-4511-8000-e49c42fb0728 

[root@dhcp-128-64 ~]# subscription-manager config | grep manage_repos
   manage_repos = [1]

[root@dhcp-128-64 ~]# subscription-manager list --consumed
No consumed subscription pools to list

[root@dhcp-128-64 ~]# subscription-manager config --rhsm.manage_repos=""

[root@dhcp-128-64 ~]# subscription-manager config | grep manage_repos
   manage_repos = [1]

2. Attach subscription and unset manage_repos, and yum considers using managed repositories as default with square brackets.

[root@dhcp-128-64 ~]# subscription-manager attach --auto


Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed


[root@dhcp-128-64 ~]# subscription-manager config --rhsm.manage_repos=""
[root@dhcp-128-64 ~]# subscription-manager config | grep manage_repos
   manage_repos = [1]
[root@dhcp-128-64 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-6-server-rhn-tools-beta-source-rpms
Repo Name: RHN Tools for Red Hat Enterprise Linux 6 Server Beta (Source RPMs)
Repo URL:  https://samserv.redhat.com:8088/content/beta/rhel/server/6/$releaseve
           r/$basearch/rhn-tools/source/SRPMS
Enabled:   0



Moving the bug from ON_QA to VERIFIED.

Comment 6 errata-xmlrpc 2016-05-10 20:37:56 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.

https://rhn.redhat.com/errata/RHBA-2016-0797.html