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 1749395 - error happens when run connection.UEPConnection.getPoolsList() given a newly created Stage Candlepin user
Summary: error happens when run connection.UEPConnection.getPoolsList() given a newly ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-05 14:10 UTC by Li Bin Liu
Modified: 2021-11-10 07:50 UTC (History)
7 users (show)

Fixed In Version: subscription-manager-1.28.16-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:37:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4390 0 None None None 2021-11-09 19:37:46 UTC

Comment 12 William Poteat 2021-03-23 20:11:34 UTC
I need a better explanation of why this is a bug against our applications. The initial bug report shows newly written python code that does not properly handle what is returned from Candlepin when there are no orgs for a user.

The code for subscription-manager accounts for the possibility of a user with no orgs and outputs proper error messaging when needed [user testuser has no org]:


$ sudo subscription-manager orgs --username testuser1 --password password
testuser1 cannot register with any organizations.


$ sudo subscription-manager register --username testuser1 --password password
Registering to: candlepin.example.com:8443/candlepin
testuser1 cannot register with any organizations.

If there is a bug in the way the subscription-manager code handles this scenario, please comment on it.

Comment 14 Shwetha Kallesh 2021-04-28 10:46:28 UTC
Reproducer:


[root@kvm-02-guest06 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.16-1
subscription management rules: 5.41
subscription-manager: 1.28.13-2.el8


[root@kvm-02-guest06 ~]# subscription-manager register --force
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_test_bug
Password: 
'NoneType' object is not subscriptable
[root@kvm-02-guest06 ~]#

Comment 15 Shwetha Kallesh 2021-04-28 11:02:51 UTC
Pre-verification comments:

[root@ibm-x3650m4-01-vm-05 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.16-1
subscription management rules: 5.41
subscription-manager: 1.28.16-1.el8


[root@ibm-x3650m4-01-vm-05 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com --force
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
The system with UUID c1778257-582b-48df-b560-15796c320c95 has been unregistered
All local data removed
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_test_bug
Password: 
shwetha_test_bug cannot register with any organizations.
^^ now proper message is thrown instead of "'NoneType' object is not subscriptable"

Comment 19 Shwetha Kallesh 2021-05-14 14:23:54 UTC
Verification:

[root@kvm-03-guest08 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.16-1
subscription management rules: 5.41
subscription-manager: 1.28.16-1.el8


[root@kvm-03-guest08 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com --force
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_test_1                                                                                                                       
Password: 
shwetha_test_1 cannot register with any organizations.
^^ now proper message is thrown instead of "'NoneType' object is not subscriptable"

Comment 22 errata-xmlrpc 2021-11-09 19:37:33 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 and enhancement 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-2021:4390


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