Bug 966069 - Stacking of a future subscription and present subsciption make the product "compliant"
Summary: Stacking of a future subscription and present subsciption make the product "c...
Keywords:
Status: CLOSED CURRENTRELEASE
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-22 12:12 UTC by Rehana
Modified: 2013-10-01 13:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-01 13:50:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
active subscription (70.42 KB, image/png)
2013-05-22 12:13 UTC, Rehana
no flags Details
future subscription (70.41 KB, image/png)
2013-05-22 12:13 UTC, Rehana
no flags Details

Description Rehana 2013-05-22 12:12:05 UTC
Description of problem:
Observed that stacking a future subscription and a present subscription make the product complaint

Version-Release number of selected component (if applicable):
[root@localhost entitlement]# rpm -qa | grep subsc
subscription-manager-gui-1.8.7-1.el5_9
subscription-manager-debuginfo-1.8.7-1.el5_9
subscription-manager-firstboot-1.8.7-1.el5_9
subscription-manager-1.8.7-1.el5_9
subscription-manager-migration-1.8.7-1.el5_9


How reproducible:
100%

Steps to Reproduce:
1.Register client(has 4 sockets) to Candlepin
2.[root@localhost product]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS for x86_64 Bits
Product ID:     100000000000002
Version:        3.11
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not covered by a valid subscription.
Starts:         
Ends:           

[root@localhost product]# subscription-manager list --available | grep "x86_64" -A9
Subscription Name: Awesome OS for x86_64
SKU:               awesomeos-x86_64
Pool ID:           8ac6a30b3ecb637e013ecb6462aa0698
Quantity:          5
Service Level:     
Service Type:      
Multi-Entitlement: Yes
Ends:              05/22/2014
System Type:       Physical

Subscription Name: Awesome OS for x86_64
SKU:               awesomeos-x86_64
Pool ID:           8ac6a30b3ecb637e013ecb646290068c
Quantity:          10
Service Level:     
Service Type:      
Multi-Entitlement: Yes
Ends:              05/22/2014
System Type:       Physical

3. attach a present subscription with 2 quantities

[root@localhost product]# subscription-manager attach --pool 8ac6a30b3ecb637e013ecb6462aa0698 --quantity=2
Successfully attached a subscription for: Awesome OS for x86_64
[root@localhost product]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS for x86_64 Bits
Product ID:     100000000000002
Version:        3.11
Arch:           x86_64
Status:         Partially Subscribed
Status Details: Only covers 2 of 4 sockets.
Starts:         
Ends:           

4. list future subscription

[root@localhost product]# subscription-manager list --available --ondate=2014-05-22 | grep "x86_64" -A9
Subscription Name: Awesome OS for x86_64
SKU:               awesomeos-x86_64
Pool ID:           8ac6a30b3ecb637e013ecb64627d0682
Quantity:          15
Service Level:     
Service Type:      
Multi-Entitlement: Yes
Ends:              05/12/2015
System Type:       Physical

Subscription Name: Awesome OS for x86_64
SKU:               awesomeos-x86_64
Pool ID:           8ac6a30b3ecb637e013ecb646290068c
Quantity:          10
Service Level:     
Service Type:      
Multi-Entitlement: Yes
Ends:              05/22/2014
System Type:       Physical

4
[root@localhost product]# subscription-manager attach --pool 8ac6a30b3ecb637e013ecb64627d0682 --quantity=2
Successfully attached a subscription for: Awesome OS for x86_64
[root@localhost product]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS for x86_64 Bits
Product ID:     100000000000002
Version:        3.11
Arch:           x86_64
Status:         Subscribed
Status Details: 
Starts:         05/12/2014
Ends:           05/22/2014  

Actual results:

couple of observations

1)Product  turn "fully subscribred" with the stacking of future subscription and a present subscription

Attached screenshots of GUI

Expected result:
Suggestion,
stacking should consider the active subscriptions to make the system compliant

Comment 1 Rehana 2013-05-22 12:13:02 UTC
Created attachment 751673 [details]
active subscription

Comment 2 Rehana 2013-05-22 12:13:55 UTC
Created attachment 751674 [details]
future subscription

Comment 3 Carter Kozak 2013-05-29 18:10:35 UTC
commit 2a06a1de668005adaf8020494c2be5ebf0cbd9b1
Author: ckozak <ckozak>
Date:   Fri May 24 11:03:42 2013 -0400

    966069: only stack valid ents

Comment 4 Bryan Kearney 2013-06-05 12:33:29 UTC
You want to test this agianst candlepin 0.8.10 or later.

Comment 5 Rehana 2013-06-10 06:49:17 UTC
Retested,

Observed that only valid entitlements are considered to make the product compliant

[root@localhost product]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS for x86_64 Bits
Product ID:     100000000000002
Version:        3.11
Arch:           x86_64
Status:         Partially Subscribed
Status Details: Only covers 2 of 4 sockets.
Starts:         
Ends:           

[root@localhost product]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS for x86_64
Provides:          Awesome OS for x86_64 Bits
SKU:               awesomeos-x86_64
Contract:          79
Account:           12331131231
Serial:            753799388840872733
Pool ID:           8ac6a3f83f1d8949013f1d8b3e8d0775
Active:            False
Quantity Used:     1
Service Level:     
Service Type:      
Status Details:    
Starts:            05/28/2014
Ends:              05/28/2015

Subscription Name: Awesome OS for x86_64
Provides:          Awesome OS for x86_64 Bits
SKU:               awesomeos-x86_64
Contract:          78
Account:           12331131231
Serial:            6737739607938081328
Pool ID:           8ac6a3f83f1d8949013f1d8b3eb9078a
Active:            True
Quantity Used:     2
Service Level:     
Service Type:      
Status Details:    Only covers 2 of 4 sockets.
Starts:            06/07/2013
Ends:              06/07/2014

Subscription Name: Awesome OS for x86_64
Provides:          Awesome OS for x86_64 Bits
SKU:               awesomeos-x86_64
Contract:          79
Account:           12331131231
Serial:            7945134943050548398
Pool ID:           8ac6a3f83f1d8949013f1d8b3e8d0775
Active:            False
Quantity Used:     1
Service Level:     
Service Type:      
Status Details:    
Starts:            05/28/2014
Ends:              05/28/2015

moving this to verified:

on
[root@localhost product]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.13-1
subscription-manager: 1.8.10-1.el5_9
python-rhsm: 1.8.12-1.el5_9

[root@localhost product]# rpm -qa | grep subsc
subscription-manager-gui-1.8.10-1.el5_9
subscription-manager-migration-1.8.10-1.el5_9
subscription-manager-firstboot-1.8.10-1.el5_9
subscription-manager-debuginfo-1.8.10-1.el5_9
subscription-manager-1.8.10-1.el5_9


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