Bug 958827 - "status details" for bundled subscrption list same reasons multiple times
Summary: "status details" for bundled subscrption list same reasons multiple times
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Carter Kozak
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510
TreeView+ depends on / blocked
 
Reported: 2013-05-02 13:29 UTC by Rehana
Modified: 2014-09-15 00:08 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 23:07:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description Rehana 2013-05-02 13:29:33 UTC
Description of problem:
Observed the "status details" of a bundled subscription list the same compliance reasons multiple times ( no.of installed products the bundled subscription covers)

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

rpm -qa | grep subscr
subscription-manager-migration-1.8.6-1.git.27.f8647f0.el5
subscription-manager-1.8.6-1.git.27.f8647f0.el5
subscription-manager-gui-1.8.6-1.git.27.f8647f0.el5
subscription-manager-firstboot-1.8.6-1.git.27.f8647f0.el5
subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5


How reproducible:


Steps to Reproduce:
1.register client
2.change the socket value (ex: echo '{"cpu.cpu_socket(s)":"5"}' > /etc/rhsm/facts/custom.facts) and update the facts 

  
Actual results:
Observed that the compliance status reason were getting listed multiple times

[root@hp-dl360g4-01 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Multi-Attribute Limited Product
Product ID:     900
Version:        1.0
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         05/01/2013
Ends:           05/01/2014

Product Name:   Awesome OS Server Bits
Product ID:     37060
Version:        6.1
Arch:           ALL
Status:         Partially Subscribed
Status Details: Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
Starts:         
Ends:      

Product Name:   Shared Storage Bits
Product ID:     37067
Version:        1.0
Arch:           ALL
Status:         Partially Subscribed
Status Details: Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
                Only covers 2 of 5 sockets.
Starts:         
Ends:           

list consumed

[root@hp-dl360g4-01 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Workstation Basic
Provides:          Awesome OS Workstation Bits
SKU:               awesomeos-workstation-basic
Contract:          28
Account:           12331131231
Serial Number:     3935729578684262503
Pool ID:           8ac6a30b3e63c090013e63c195a3114b
Active:            True
Quantity Used:     1
Service Level:     Standard
Service Type:      L1-L3
Status Details:    Only covers 2 of 5 sockets.
Starts:            05/01/2013
Ends:              05/01/2014

Subscription Name: Awesome OS Server Bundled (2 Sockets, Standard Support)
Provides:          Clustering Bits
                   Awesome OS Server Bits
                   Load Balancing Bits
                   Large File Support Bits
                   Shared Storage Bits
                   Management Bits
SKU:               awesomeos-server-2-socket-std
Contract:          40
Account:           12331131231
Serial Number:     6427382263954575144
Pool ID:           8ac6a30b3e63c090013e63c194fd1102
Active:            True
Quantity Used:     1
Service Level:     Standard
Service Type:      L1-L3
Status Details:    Only covers 2 of 5 sockets.
                   Only covers 2 of 5 sockets.
                   Only covers 2 of 5 sockets.
                   Only covers 2 of 5 sockets.
                   Only covers 2 of 5 sockets.
                   Only covers 2 of 5 sockets.
Starts:            05/01/2013
Ends:              05/01/2014

Expected results:
should be listing only once

Additional info:

Comment 1 Rehana 2013-05-02 13:36:35 UTC
list --status output

[root@hp-dl360g4-01 ~]# subscription-manager list --status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Insufficient

Awesome OS Server Bundled (2 Sockets, Standard Support): Only covers 2 of 5 sockets.
Awesome OS Server Bundled (2 Sockets, Standard Support): Only covers 2 of 5 sockets.
Awesome OS Server Bundled (2 Sockets, Standard Support): Only covers 2 of 5 sockets.
Awesome OS Workstation Basic:                            Only covers 2 of 5 sockets.
Awesome OS Server Bundled (2 Sockets, Standard Support): Only covers 2 of 5 sockets.
Awesome OS Server Bundled (2 Sockets, Standard Support): Only covers 2 of 5 sockets.
Awesome OS Server Bundled (2 Sockets, Standard Support): Only covers 2 of 5 sockets.

Comment 2 RHEL Program Management 2013-05-02 20:28:42 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 3 Carter Kozak 2013-05-07 18:58:02 UTC
commit 6c73affc74cdbb511d802a96011a36e92f646e3b
Merge: 0b5277e f7bfb57
Author: ckozak <ckozak>
Date:   Mon May 6 15:39:57 2013 -0400

    958827: fixed duplicate reasons from bundled subs, removed messages for valid products, refactoreed client-side reasons

Comment 5 Rehana 2013-05-14 06:53:37 UTC
Retested, observed that now the "Status details" for a bundled subscription is listing the message only onces

[root@hp-bl460cgen8-01 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Server Bundled (2 Sockets, Standard Support)
Provides:          Clustering Bits
                   Awesome OS Server Bits
                   Load Balancing Bits
                   Large File Support Bits
                   Shared Storage Bits
                   Management Bits
SKU:               awesomeos-server-2-socket-std
Contract:          36
Account:           12331131231
Serial Number:     78397930735581677
Pool ID:           8ac6a30b3e9c9a9c013e9c9b800906fe
Active:            True
Quantity Used:     1
Service Level:     Standard
Service Type:      L1-L3
Status Details:    Only covers 2 of 5 sockets.
Starts:            05/12/2013
Ends:              05/12/2014

[root@hp-bl460cgen8-01 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Shared Storage Bits
Product ID:     37067
Version:        1.0
Arch:           ALL
Status:         Partially Subscribed
Status Details: Only covers 2 of 5 sockets.
Starts:         
Ends:           

Product Name:   Awesome OS Server Bits
Product ID:     37060
Version:        6.1
Arch:           ALL
Status:         Partially Subscribed
Status Details: Only covers 2 of 5 sockets.
Starts:         
Ends:           

Product Name:   Core Limiting Product
Product ID:     806
Version:        1.0
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not covered by a valid subscription.
Starts:         
Ends:           

[root@hp-bl460cgen8-01 ~]# subscription-manager list --status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid

Core Limiting Product:
- Not covered by a valid subscription.

Awesome OS Server Bundled (2 Sockets, Standard Support):
- Only covers 2 of 5 sockets.

Hence moving the bug to verified

Verified on

[root@hp-bl460cgen8-01 ~]# rpm -qa | grep subscr
subscription-manager-gui-1.8.7-1.el5
subscription-manager-1.8.7-1.el5
subscription-manager-firstboot-1.8.7-1.el5
subscription-manager-migration-1.8.7-1.el5
subscription-manager-migration-data-1.11.2.7-1.el5
subscription-manager-debuginfo-1.8.7-1.el5

root@hp-bl460cgen8-01 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.7-1
subscription-manager: 1.8.7-1.el5
python-rhsm: 1.8.10-1.el5

Comment 7 errata-xmlrpc 2013-09-30 23:07:28 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


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