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 1537473 - cannot run subscription-manager commands on CDK
Summary: cannot run subscription-manager commands on CDK
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-23 09:47 UTC by Shwetha Kallesh
Modified: 2023-09-07 19:01 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-06 12:57:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 1769 0 None closed 1537473: Subman rpm requires python-setuptools 2021-01-30 17:54:02 UTC
Red Hat Product Errata RHBA-2019:2008 0 None None None 2019-08-06 12:57:48 UTC

Description Shwetha Kallesh 2018-01-23 09:47:58 UTC
Description of problem:
cannot run subscription-manager commands on CDK

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

[docker@minishift ~]$ sudo yum list installed subscription-manager 

subscription-manager.x86_64                                                                                       1.21.1-1.git.29.5c6df8e.el7                                                                                       installed


How reproducible:


Steps to Reproduce:


[docker@minishift ~]$ sudo subscription-manager register --force
Traceback (most recent call last):
  File "/sbin/subscription-manager", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources


[docker@minishift ~]$ sudo subscription-manager version
Traceback (most recent call last):
  File "/sbin/subscription-manager", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources




Actual results:
Cannot run any of sub-man commands

Expected results:
Subscription-manager shpould run successfully

Additional info:

subscription-manager works fine on CDK with following version

[docker@minishift ~]$ rm -rf sudo subscription-manager- version
[docker@minishift ~]$ sudo subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.43-1
subscription management rules: 5.26
subscription-manager: 1.20.9-1.el7

[docker@minishift ~]$ sudo subscription-manager register --force
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
The system with UUID bd8e696b-0284-4f62-b3f8-655fe5894146 has been unregistered
All local data removed
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_tier1_test
Password: 
The system has been registered with ID: d7997b98-7d9c-488b-ba30-39e69c9ce827
The registered system name is: minishift

Comment 2 Kevin Howell 2018-01-25 15:06:50 UTC
Dev, this is probably due to recent changes in master, and will *not* be an issue for 7.5 builds.

Comment 3 Chris Snyder 2018-08-29 13:23:11 UTC
I believe this has been completed in the interim between RHEL 7.5 and RHEL 7.6 as it appears in the rebase from upstream performed for RHEL 7.6. Adding a dev_ack as such so we can attempt to get some testing of this for RHEL 7.6.

Comment 6 Shwetha Kallesh 2019-06-25 10:51:34 UTC
Verification:

[root@intel-piketon-01 rpm-gpg]# sudo subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.3.17-1
subscription management rules: 5.35
subscription-manager: 1.24.13-1.el7

[root@intel-piketon-01 rpm-gpg]# sudo subscription-manager register --force
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
The system with UUID e6379269-57dd-44b6-b8c1-7e1c833e37c0 has been unregistered
All local data removed
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: scratchAccount1
Password: 
The system has been registered with ID: 32c20b49-6625-4e24-8435-5ad955ef3b3d
The registered system name is: intel-piketon-01.khw1.lab.eng.bos.redhat.com

[root@intel-piketon-01 rpm-gpg]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed

Product Name: Red Hat Developer Tools (for RHEL Server)
Status:       Subscribed

Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

Comment 7 Shwetha Kallesh 2019-06-27 14:46:45 UTC
Verification after updating packages :

[docker@minishift ~]$ sudo subscription-manager version
server type: This system is currently not registered.
subscription management server: 2.3.17-1
subscription management rules: 5.35
subscription-manager: 1.24.13-1.el7

[docker@minishift ~]$ sudo subscription-manager register --serverurl subscription.rhsm.stage.redhat.com --auto-attach
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: scratchAccount1
Password: 
The system has been registered with ID: aeaa8efa-fcd2-43de-aacb-69c7f64e2904
The registered system name is: minishift
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

Comment 9 errata-xmlrpc 2019-08-06 12:57:25 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://access.redhat.com/errata/RHBA-2019:2008


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