Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 980640

Summary: subscription-manager-gui My Installed Products > Status is incomplete for multiple attachments
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Carter Kozak <ckozak>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10CC: bkearney, ckozak, fsharath, jmolet, skallesh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-30 23:12:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 840995    
Attachments:
Description Flags
Status of an installed product covered by multiple contracts appears broken
none
Installed product status on GUI
none
Installed product status on GUI for multiple subscriptions none

Description John Sefler 2013-07-02 22:13:19 UTC
Created attachment 767985 [details]
Status of an installed product covered by multiple contracts appears broken

Description of problem:
See screenshot


Version-Release number of selected component (if applicable):
[root@jsefler-5 ~]# rpm -q subscription-manager-gui
subscription-manager-gui-1.8.11-1.el5


How reproducible:


Steps to Reproduce:
Register an 8 socket system to candlepin with TESTDATA deployed and attach the following subscriptions....

[root@jsefler-5 ~]# subscription-manager facts | grep socket
cpu.core(s)_per_socket: 1
cpu.cpu_socket(s): 8
dmi.processor.socket_designation: CPU 1
[root@jsefler-5 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS for All Arch (just x86_64 content)
Provides:          Awesome OS for All Arch (just x86_64 content) Bits
SKU:               awesomeos-all-just-86_64-cont
Contract:          102
Account:           12331131231
Serial:            7521752372803824767
Pool ID:           8a90f8203f9b0052013f9b01d0c70616
Active:            True
Quantity Used:     5
Service Level:     None
Service Type:      None
Status Details:    
Starts:            06/30/2013
Ends:              06/30/2014

Subscription Name: Awesome OS for x86_64
Provides:          Awesome OS for x86_64 Bits
SKU:               awesomeos-x86_64
Contract:          78
Account:           12331131231
Serial:            8753634718456046221
Pool ID:           8a90f8203f9b0052013f9b01cf9c0592
Active:            True
Quantity Used:     3
Service Level:     None
Service Type:      None
Status Details:    
Starts:            06/30/2013
Ends:              06/30/2014



Actual results:
Then see attached screenshot.
Status: Covered by contract 78 through

Expected results:
Status Covered by contracts 78,102 through 06/30/2014

Comment 1 RHEL Program Management 2013-07-02 22:17:13 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 2 Carter Kozak 2013-07-09 20:46:55 UTC
This fix required a small logic change in both subscription-manager and candlepin

subscription-manager:
commit 2e1c84a30be11b85138c92d44a28a44d9e010354
Author: ckozak <ckozak>
Date:   Mon Jul 8 12:02:32 2013 -0400

    980640: include stacked ents in provided

candlepin:
commit 70f58abb057f2e414efc7afaa055f075644e5d52
Author: ckozak <ckozak>
Date:   Mon Jul 8 12:58:00 2013 -0400

    980640: fix stacked ent providing logic

Comment 5 Shwetha Kallesh 2013-07-15 12:28:34 UTC
Created attachment 773708 [details]
Installed product status on GUI

[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.17-1
subscription-manager: 1.8.13-1.el5
python-rhsm: 1.8.13-1.git.0.85d7af5.el5



[root@localhost ~]# subscription-manager facts --list 
cpu.core(s)_per_socket: 1
cpu.cpu_socket(s): 8

[root@localhost ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides:          Awesome OS Instance Server Bits
SKU:               awesomeos-instancebased
Contract:          43
Account:           12331131231
Serial:            2871763104569787014
Pool ID:           8ac6a3a23fe1b9aa013fe1bab94d07f9
Active:            True
Quantity Used:     1
Service Level:     Standard
Service Type:      L1-L3
Status Details:    
Starts:            07/15/2013
Ends:              07/15/2014

Comment 6 Shwetha Kallesh 2013-07-15 12:34:39 UTC
Created attachment 773709 [details]
Installed product status on GUI for multiple subscriptions

[root@localhost ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides:          Awesome OS Instance Server Bits
SKU:               awesomeos-instancebased
Contract:          43
Account:           12331131231
Serial:            2871763104569787014
Pool ID:           8ac6a3a23fe1b9aa013fe1bab94d07f9
Active:            True
Quantity Used:     1
Service Level:     Standard
Service Type:      L1-L3
Status Details:    
Starts:            07/15/2013
Ends:              07/15/2014

Subscription Name: Awesome OS Instance Based (Standard Support)
Provides:          Awesome OS Instance Server Bits
SKU:               awesomeos-instancebased
Contract:          42
Account:           12331131231
Serial:            1054656422365373147
Pool ID:           8ac6a3a23fe1b9aa013fe1bab9650808
Active:            True
Quantity Used:     1
Service Level:     Standard
Service Type:      L1-L3
Status Details:    
Starts:            07/15/2013
Ends:              07/15/2014

Comment 8 errata-xmlrpc 2013-09-30 23:12:17 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.

http://rhn.redhat.com/errata/RHBA-2013-1332.html