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 - When the value of manage_repos is blank, the output of 'repos --list' is not reasonable.
Summary: When the value of manage_repos is blank, the output of 'repos --list' is not ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-rhsm
Version: 6.8
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: pre-dev-freeze
: ---
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On: 1251853
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-15 18:38 UTC by J.C. Molet
Modified: 2016-05-10 20:37 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1251853
Environment:
Last Closed: 2016-05-10 20:37:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0797 0 normal SHIPPED_LIVE python-rhsm and subscription-manager bug fix and enhancement update 2017-01-06 16:31:50 UTC

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


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