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 1688702 - 'subscription-manager repos --enable/disable=' to work offline
Summary: 'subscription-manager repos --enable/disable=' to work offline
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-14 09:17 UTC by Prathamesh Chavan
Modified: 2023-12-15 16:23 UTC (History)
8 users (show)

Fixed In Version: subscription-manager-1.24.29-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1722606 (view as bug list)
Environment:
Last Closed: 2020-09-29 19:22:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2022 0 None closed allow offline repo management 2021-01-30 15:18:16 UTC
Github candlepin subscription-manager pull 2248 0 None closed 1688702: Generate redhat.repo in off-line mode; ENT-2302 2021-01-30 15:18:17 UTC
Red Hat Product Errata RHBA-2020:3866 0 None None None 2020-09-29 19:22:58 UTC

Description Prathamesh Chavan 2019-03-14 09:17:59 UTC
1. Proposed title of this feature request
>
'subscription-manager repos --enable/disable=' to work offline


2. Who is the customer behind the request?
>
Account Name : Draper Laboratory
Account # : 5972439


TAM customer: No


SRM customer: No


Strategic: No


3. What is the nature and description of the request?
>
'subscription-manager repos' command should not fail in an offline environment.  (Same issue for 'subscription-manager release' command)


4. Why does the customer need this? (List the business requirements here)
>
Need to be able to manage repos for online and offline systems in a consistent manner.


5. Is there already an existing RFE in Red Hat Bugzilla?
>
No


6. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?
>
The customer has not mentioned any timeline and is currently using RHEL6 and RHEL7.


7. Is the sales team involved in this request and do they have any additional input?
>
Sales Team is not involved.


8. Would the customer be able to assist in testing this functionality if implemented?
>
Yes. The customer would be willing to assist in testing this functionality.

Comment 3 James Cassell 2019-03-14 15:17:23 UTC
Fix for the 'subscription-manager repos' part is available at https://github.com/candlepin/subscription-manager/pull/2022

I'm not aware of an existing fix for offline 'subscription-manager release' commands.  Likely, would just have to skip the validation step and take what the user presents.

Comment 4 Prathamesh Chavan 2019-09-23 04:14:54 UTC
Hello team,

It would be great if someone can share an update about the status of this request.
Thanks!

~ Prathamesh

Comment 5 Prathamesh Chavan 2019-12-19 07:27:33 UTC
Hello team,

Can someone share the status update here?

~ Prathamesh

Comment 10 Shwetha Kallesh 2020-04-15 13:42:05 UTC
Moving bug back to new/Failed_qa as I see the traceback

    [root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
    server type: This system is currently not registered.
    subscription management server: 2.9.21-1
    subscription management rules: 5.37
    subscription-manager: 1.24.32
     
     
    [root@hpe-dl380pgen8-02-vm-4 ~]# rpm -q --changelog subscription-manager | grep 1688702
    - 1688702: allow offline repo management (code.me)
     
    [root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager identity
    This system is not yet registered. Try 'subscription-manager register --help' for more information.
    [root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager import --cert /root/import_cert.pem
    Successfully imported certificate import_cert.pem
    [root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager repos --list
    +----------------------------------------------------------+
        Available Repositories in /etc/yum.repos.d/redhat.repo
    +----------------------------------------------------------+
    Repo ID:   rhel-7-server-dotnet-rpms
    Repo Name: dotNET on RHEL RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.4-rpms
    Repo Name: Red Hat Satellite Tools 6.4 (for RHEL 7 Server - EUS) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.4/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-thirdparty-oracle-java-beta-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Oracle Java Beta (RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/oracle-java/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.8-source-rpms
    Repo Name: Red Hat Ansible Engine 2.8 Source RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.8/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6-puppet-upgrade-beta-source-rpms
    Repo Name: Red Hat Satellite Tools 6 Beta - Puppet Upgrade (for RHEL 7 Server) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6-puppet-upgrade/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.6-source-rpms
    Repo Name: Red Hat Ansible Engine 2.6 Source RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.6/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-dotnet-source-rpms
    Repo Name: dotNET on RHEL Source RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-openstack-13-tools-source-rpms
    Repo Name: Red Hat OpenStack Platform 13 Tools for RHEL 7 Server (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/13/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-rhn-tools-beta-source-rpms
    Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server Beta (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rhn-tools/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-sap-for-rhel-7-server-beta-rpms
    Repo Name: Red Hat Enterprise Linux for SAP (RHEL 7 Server) Beta (RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sap/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-source-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-extras-source-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Extras (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-openstack-7.0-tools-debug-rpms
    Repo Name: Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/7.0/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.5-source-rpms
    Repo Name: Red Hat Ansible Engine 2.5 Source RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.5/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.1-rpms
    Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server - EUS) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.1/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-v2vwin-1-rpms
    Repo Name: Red Hat Virt V2V Tool for RHEL 7 (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-extras-beta-source-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Extras Beta (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/extras/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.7-rpms
    Repo Name: Red Hat Ansible Engine 2.7 RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.7/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-dotnet-beta-debug-rpms
    Repo Name: dotNET on RHEL Beta Debug RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/dotnet/1/debug
    Enabled:   0
     
    Repo ID:   rhel-sap-for-rhel-7-server-debug-rpms
    Repo Name: Red Hat Enterprise Linux for SAP (RHEL 7 Server) (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/sap/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-openstack-11-tools-rpms
    Repo Name: Red Hat OpenStack Platform 11 Tools for RHEL 7 Server (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/11/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.7-rpms
    Repo Name: Red Hat Satellite Tools 6.7 (for RHEL 7 Server) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.7/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-rhceph-2-tools-debug-rpms
    Repo Name: Red Hat Ceph Storage Tools 2 for Red Hat Enterprise Linux 7 Server (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/2/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-rh-common-beta-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - RH Common Beta (RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rh-common/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-optional-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Extended Update Support - Optional (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/optional/os
    Enabled:   0
     
    Repo ID:   rhel-server-rhscl-7-debug-rpms
    Repo Name: Red Hat Software Collections Debug RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.5-rpms
    Repo Name: Red Hat Satellite Tools 6.5 (for RHEL 7 Server - EUS) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.5/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-insights-3-source-rpms
    Repo Name: Red Hat Insights 3 (for RHEL 7 Server) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/insights/3/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.5-rpms
    Repo Name: Red Hat Satellite Tools 6.5 (for RHEL 7 Server) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.5/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-rhn-tools-source-rpms
    Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server - Extended Update Support (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhn-tools/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-openstack-14-tools-source-rpms
    Repo Name: Red Hat OpenStack Platform 14 Tools for RHEL 7 Server (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/openstack-tools/14/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-extras-debug-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Extras (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-debug-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/debug
    Enabled:   0
     
    Repo ID:   rhel-server-rhscl-7-source-rpms
    Repo Name: Red Hat Software Collections Source RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.4-rpms
    Repo Name: Red Hat Ansible Engine 2.4 RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-rh-common-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - RH Common (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rh-common/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6-puppet-upgrade-beta-debug-rpms
    Repo Name: Red Hat Satellite Tools 6 Beta - Puppet Upgrade (for RHEL 7 Server) (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6-puppet-upgrade/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.6-rpms
    Repo Name: Red Hat Ansible Engine 2.6 RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.6/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.8-debug-rpms
    Repo Name: Red Hat Ansible Engine 2.8 Debug RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.8/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-dotnet-beta-rpms
    Repo Name: dotNET on RHEL Beta RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/dotnet/1/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.3-rpms
    Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.1-rpms
    Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-supplementary-debuginfo
    Repo Name: Red Hat Enterprise Linux 7 Server - Extended Update Support - Supplementary (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/supplementary/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6-beta-rpms
    Repo Name: Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-supplementary-beta-debug-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary Beta (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/supplementary/debug
    Enabled:   0
     
    Repo ID:   rh-gluster-3-client-for-rhel-7-server-source-rpms
    Repo Name: Red Hat Storage Native Client for RHEL 7 (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhs-client/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-sap-for-rhel-7-server-beta-source-rpms
    Repo Name: Red Hat Enterprise Linux for SAP (RHEL 7 Server) Beta (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sap/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.3-debug-rpms
    Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.6-rpms
    Repo Name: Red Hat Satellite Tools 6.6 (for RHEL 7 Server - EUS) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.6/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.3-rpms
    Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server - EUS) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.3/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.3-puppet4-debug-rpms
    Repo Name: Red Hat Satellite Tools 6.3 - Puppet 4 (for RHEL 7 Server) (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3-puppet4/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.3-source-rpms
    Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-rhceph-3-tools-rpms
    Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/rhceph-tools/3/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-optional-fastrack-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Optional Fastrack (RPMs)
    Repo URL:  https://cdn.redhat.com/content/fastrack/rhel/server/7/$basearch/optional/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-optional-debug-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Extended Update Support - Optional (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/optional/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-rh-common-beta-debug-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - RH Common Beta (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/rh-common/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-openstack-8-tools-rpms
    Repo Name: Red Hat OpenStack Platform 8 Tools for RHEL 7 Server (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/8/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-rhceph-1.3-tools-rpms
    Repo Name: Red Hat Ceph Storage Tools 1.3 for Red Hat Enterprise Linux 7 Server (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/ceph-tools/1.3/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.3-puppet4-source-rpms
    Repo Name: Red Hat Satellite Tools 6.3 - Puppet 4 (for RHEL 7 Server) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.3-puppet4/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6-beta-debug-rpms
    Repo Name: Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-tools/6/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.4-debug-rpms
    Repo Name: Red Hat Ansible Engine 2.4 Debug RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.7-source-rpms
    Repo Name: Red Hat Satellite Tools 6.7 (for RHEL 7 Server) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.7/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-rhceph-3-tools-debug-rpms
    Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/rhceph-tools/3/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-optional-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-tools-6.4-source-rpms
    Repo Name: Red Hat Satellite Tools 6.4 (for RHEL 7 Server) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.4/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-rhn-tools-debug-rpms
    Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server - Extended Update Support (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhn-tools/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-beta-source-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server Beta (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.7-rpms
    Repo Name: Red Hat Satellite Tools 6.7 (for RHEL 7 Server - EUS) (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.7/os
    Enabled:   0
     
    Repo ID:   rhel-7-server-ansible-2.4-source-rpms
    Repo Name: Red Hat Ansible Engine 2.4 Source RPMs for Red Hat Enterprise Linux 7 Server
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/ansible/2.4/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-rhn-tools-source-rpms
    Repo Name: RHN Tools for Red Hat Enterprise Linux 7 Server (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhn-tools/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-satellite-maintenance-6-beta-source-rpms
    Repo Name: Red Hat Satellite Maintenance 6 Beta (for RHEL 7 Server) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/sat-maintenance/6/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-supplementary-source-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/supplementary/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-beta-debug-rpms
    Repo Name: Red Hat Enterprise Linux 7 Server Beta (Debug RPMs)
    Repo URL:  https://cdn.redhat.com/content/beta/rhel/server/7/$basearch/debug
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.3-source-rpms
    Repo Name: Red Hat Satellite Tools 6.3 (for RHEL 7 Server - EUS) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.3/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-openstack-7.0-tools-source-rpms
    Repo Name: Red Hat OpenStack Tools 7.0 for Red Hat Enterprise Linux 7 Server (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/openstack-tools/7.0/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-eus-satellite-tools-6.3-puppet4-source-rpms
    Repo Name: Red Hat Satellite Tools 6.3 - Puppet 4 (for RHEL 7 Server - EUS) (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/sat-tools/6.3-puppet4/source/SRPMS
    Enabled:   0
     
    Repo ID:   rhel-7-server-rhceph-3-tools-source-rpms
    Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (Source RPMs)
    Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/rhceph-tools/3/source/SRPMS
    Enabled:   0
     
    [root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager repos --enable rhel-7-server-rhceph-3-tools-source-rpms
    Traceback (most recent call last):
      File "/usr/sbin/subscription-manager", line 9, in <module>
        load_entry_point('subscription-manager==1.24.32', 'console_scripts', 'subscription-manager')()
      File "/usr/lib64/python2.7/site-packages/subscription_manager/scripts/subscription_manager.py", line 86, in main
        return managercli.ManagerCLI().main()
      File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 3016, in main
        ret = CLI.main(self)
      File "/usr/lib64/python2.7/site-packages/subscription_manager/cli.py", line 183, in main
        return cmd.main()
      File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 548, in main
        return_code = self._do_command()
      File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2317, in _do_command
        rc = self._set_repo_status(repos, rl, self.options.repo_actions)
      File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 2409, in _set_repo_status
        repo_file.update(repo)
      File "/usr/lib64/python2.7/site-packages/subscription_manager/repofile.py", line 514, in update
        for (k, v) in self.items(repo.id):
      File "/usr/lib/python2.7/site-packages/iniparse/compat.py", line 132, in items
        raise NoSectionError(section)
    ConfigParser.NoSectionError: No section: u'rhel-7-server-rhceph-3-tools-source-rpms'

Comment 12 Shwetha Kallesh 2020-05-12 12:43:22 UTC
Moving the bug to verified as I dont see any traceback while enabling repos and repos are enabled too


[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.9.27-1
subscription management rules: 5.37
subscription-manager: 1.24.37


Note that for import traceback there is a new bug open https://bugzilla.redhat.com/show_bug.cgi?id=1834792

[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.

[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager import --cert /root/cert.pem 
Successfully imported certificate cert.pem
ERROR:dbus.proxies:Introspect error on :1.33:/EntitlementStatus: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
ERROR:subscription_manager.dbus_interface:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.33 was not provided by any .service files
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/dbus_interface.py", line 64, in _update
    ignore_reply=self.has_main_loop)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.33 was not provided by any .service files
[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-dotnet-debug-rpms
Repo Name: dotNET on RHEL Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.2-rpms
Repo Name: Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/os
Enabled:   0

Repo ID:   rhel-7-server-v2vwin-1-debug-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug
Enabled:   0

Repo ID:   rhel-7-server-rhceph-3-tools-source-rpms
Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/rhceph-tools/3/source/SRPMS
Enabled:   0

[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager repos --enable rhel-7-server-rhceph-3-tools-source-rpms
Repository 'rhel-7-server-rhceph-3-tools-source-rpms' is enabled for this system.
[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-dotnet-debug-rpms
Repo Name: dotNET on RHEL Debug RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/dotnet/1/debug
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.2-rpms
Repo Name: Red Hat Satellite Tools 6.2 (for RHEL 7 Server) (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.2/os
Enabled:   0

Repo ID:   rhel-7-server-v2vwin-1-debug-rpms
Repo Name: Red Hat Virt V2V Tool for RHEL 7 (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/v2vwin/debug
Enabled:   0

Repo ID:   rhel-7-server-rhceph-3-tools-source-rpms
Repo Name: Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/rhceph-tools/3/source/SRPMS
Enabled:   1
^^ observe that repo is enabled too

Comment 14 errata-xmlrpc 2020-09-29 19:22:40 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 (subscription-manager bug fix update), 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://access.redhat.com/errata/RHBA-2020:3866


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