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 1467598 - subscription-manager-gui fails when the contractNumber is not present for a pool
Summary: subscription-manager-gui fails when the contractNumber is not present for a pool
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-04 10:13 UTC by Rehana
Modified: 2017-10-10 15:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1468287 (view as bug list)
Environment:
Last Closed: 2017-10-10 15:25:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Error (545.81 KB, image/png)
2017-07-04 10:13 UTC, Rehana
no flags Details
No-Error (487.29 KB, image/png)
2017-07-04 10:24 UTC, Rehana
no flags Details

Description Rehana 2017-07-04 10:13:25 UTC
Created attachment 1294154 [details]
Error

Description of problem:
Unable to get the contract selection window opened when try to attach the subscription from GUI 

Version-Release number of selected component (if applicable):
subscription-manager: 1.19.21-1.el7
python-rhsm: 1.19.9-1.el7


How reproducible:
always

Steps to Reproduce:
1.Register
2.go to "all available subscriptions" 
3.Select a subscription that has multiple contract 

Actual results:
Error appears (PFA: Error.png) 


Expected results:
contract selection window should appear

Additional info:

Comment 2 Rehana 2017-07-04 10:23:49 UTC
The above issue is reproducible only with particular subscription, i can launch the contract selection window by using a different subscriptions (PFA: No-Error.png)

Comment 3 Rehana 2017-07-04 10:24:24 UTC
Created attachment 1294157 [details]
No-Error

Comment 4 John Sefler 2017-07-05 15:00:31 UTC
Adding Info...
I can also reproduce the failure.  Notice that the Contract number appears empty for the subscription selected in the gui which should never be the case in production.

[root@jsefler-rhel7 ~]# subscription-manager list --avail --matches MCT0335
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Enterprise Linux AS, Standard
Provides:            Red Hat Beta
                     Red Hat Enterprise Linux Resilient Storage (for RHEL
                     Server)
                     Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux High Availability (for RHEL
                     Server)
                     Red Hat Enterprise Linux Server
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Hardware Certification Test Suite
SKU:                 MCT0335
Contract:                         <================ OBSERVER EMPTY/NULL 
Pool ID:             8a99f9815ccb50d9015d0cf99cec5c83
Provides Management: No
Available:           Unlimited
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Standard
Ends:                07/18/2017
System Type:         Virtual

Subscription Name:   Red Hat Enterprise Linux AS, Standard
Provides:            Red Hat Beta
                     Red Hat Enterprise Linux Resilient Storage (for RHEL
                     Server)
                     Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux High Availability (for RHEL
                     Server)
                     Red Hat Enterprise Linux Server
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Hardware Certification Test Suite
SKU:                 MCT0335
Contract:                         <================ OBSERVER EMPTY/NULL 
Pool ID:             8a99f9815ccb50d9015d0cf99c565c80
Provides Management: No
Available:           4
Suggested:           1
Service Level:       Standard
Service Type:        L1-L3
Subscription Type:   Standard
Ends:                07/18/2017
System Type:         Physical

Comment 5 Kevin Howell 2017-07-06 14:56:40 UTC
This should not generally happen, but we should handle this case more gracefully in subscription-manager-gui.

Comment 7 Kevin Howell 2017-10-10 15:25:22 UTC
Unrealistic data, and the underlying problem has been fixed in candlepin, we're not making changes to subscription-manager for this.


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