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 1121272

Summary: subscription-manager repos --enable=<REPOID> FAILS to enable the repo
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: bkearney, jesusr, redakkan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
no documentation required
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:47:47 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:    
Bug Blocks: 1014343    

Description John Sefler 2014-07-18 20:39:49 UTC
Description of problem:
The "--enable" option to "subscription-manager repos" fails to 
enable the repo.  Instead, it creates a disabled repo-override.


Version-Release number of selected component (if applicable):
[root@jsefler-6 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.21-1
subscription management rules: 5.11
subscription-manager: 1.12.7-1.git.14.eaae6e0.el6
python-rhsm: 1.12.4-1.git.1.33a7d26.el6


How reproducible:
Note that this was working previously in subscription-manager: 1.12.4-1.el6


Steps to Reproduce:
1. register and subscribe (not shown)
[root@jsefler-6 ~]# subscription-manager repos --list | head -8
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   awesomeos
Repo Name: awesomeos
Repo URL:  https://cdn.qa.redhat.com/path/to/$basearch/$releasever/awesomeos
Enabled:   0

[root@jsefler-6 ~]# subscription-manager repos --enable=awesomeos
Repo 'awesomeos' is disabled for this system.
[root@jsefler-6 ~]# subscription-manager repo-override --list
Repository: awesomeos
  enabled: 0



Actual results:
Notice that I specified "--enable", yet the feedback and override indicate disabled. 

Expected results:
Repo 'awesomeos' is enabled for this system.

Comment 2 Carter Kozak 2014-07-18 20:52:52 UTC
commit d623642f68d2e0e547f25a309e2696091a64ba07
Author: ckozak <ckozak>
Date:   Fri Jul 18 16:51:16 2014 -0400

    1121272: fix typo that blocked enabling repos via CLI

Comment 4 Rehana 2014-07-30 06:51:44 UTC
Retested on ,

# subscription-manager  version
server type: Red Hat Subscription Management
subscription management server: 0.9.21-1
subscription management rules: 5.11
subscription-manager: 1.12.10-1.el6
python-rhsm: 1.12.5-1.el6

Steps;
1.Register and attach subscriptions
2.Repo list # subscription-manager  repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   content-label-empty-gpg
Repo Name: content-emptygpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

Repo ID:   content-label
Repo Name: content
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0
<snip>

3.enable repo

# subscription-manager  repos --enable=content-label-empty-gpg
Repo 'content-label-empty-gpg' is enabled for this system. --> correct message is displayed now 

# subscription-manager repo-override --list
Repository: content-label-empty-gpg
  enabled: 1

# subscription-manager  repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   content-label-empty-gpg
Repo Name: content-emptygpg
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   1

Repo ID:   content-label
Repo Name: content
Repo URL:  https://cdn.redhat.com/foo/path
Enabled:   0

<snip>


Above test steps demonstrates that correct message is displayed after enabling repo , hence marking this bug verified

Comment 6 errata-xmlrpc 2014-10-14 07:47:47 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-2014-1384.html