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 1204057 - When subscription "Red Hat Employee Subscription" with sku SYS0395 expires, its details are missing in CLI and GUI.
Summary: When subscription "Red Hat Employee Subscription" with sku SYS0395 expires, i...
Keywords:
Status: CLOSED DUPLICATE of bug 1201727
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: pre-dev-freeze
: 7.0
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-20 09:49 UTC by qianzhan
Modified: 2015-09-24 18:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-24 18:34:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
"expired subscription details missing in GUI.png" (150.70 KB, image/png)
2015-03-20 09:50 UTC, qianzhan
no flags Details

Description qianzhan 2015-03-20 09:49:13 UTC
Description of problem:
When subscription "Red Hat Employee Subscription" with sku SYS0395 expires, its details are missing in CLI and GUI.

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

How reproducible:
always

Steps to Reproduce:
1. Register and attach subscription "Red Hat Employee Subscription" whose sku is SYS0395.

[root@dhcp-128-77 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Employee Subscription
Provides:            Oracle Java (for RHEL Server)
                     Red Hat Enterprise Linux Workstation
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Enterprise Linux Server
                     Red Hat Enterprise Linux High Availability (for RHEL Server)
                     Red Hat Enterprise Linux Resilient Storage (for RHEL Server)
SKU:                 SYS0395
Contract:            
Account:             5501040
Serial:              1528604779300673877
Pool ID:             8ac2008e4bff2d9b014bff5845bf04e1
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       None
Service Type:        Self-Support
Status Details:      Guest has not been reported on any host and is using a temporary unmapped guest subscription.
Subscription Type:   Standard
Starts:              12/31/2014
Ends:                03/21/2015
System Type:         Virtual


2. Set the client system expired
[root@dhcp-128-77 ~]# date -s 20150322
Sun Mar 22 00:00:00 CST 2015

3. Check the consumed subscription in CLI.

[root@dhcp-128-77 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+

4. Check the subscription details in GUI.
All the details in My Subscriptions tab are missing. Please see attachment: "expired subscription details missing in GUI.png"

Actual results:
As step 3 and step 4, consumed subscriptions can not be listed in CLI, and its details are missing in GUI.

Expected results:
The expired subscription details should be visible in CLI and GUI.

Additional info:

Comment 1 qianzhan 2015-03-20 09:50:40 UTC
Created attachment 1004407 [details]
"expired subscription details missing in GUI.png"

Comment 2 RHEL Program Management 2015-03-20 10:03:08 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 6 William Poteat 2015-08-04 19:39:30 UTC
Scenario behaves correctly in current source.

Comment 7 Adrian Likins 2015-09-24 18:31:01 UTC
I suspect this was resolved in:

commit cce1c670bb8f59dfd6c4548928fb5c634b91a0d7
Author: Adrian Likins <alikins>
Date:   Mon Mar 16 14:12:14 2015 -0400

    1201727: Handle reasons with expired ent id
    
    Reasons that include an 'entitlement_id' attribute that
    references a entitlement id that is not currently in
    cert_sorters valid_entitlement_certs (for ex, a
    cert that has since expired) were causing tracebacks.
    
    Add test cases to cover that scenario, and some additional
    tests in test_reasons.py to improve coverage.

Comment 8 John Sefler 2015-09-24 18:34:37 UTC

*** This bug has been marked as a duplicate of bug 1201727 ***


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