Bug 996672 - GUI Spinner of instance based subscription needs to consider the inactive subscripton while displaying default quantity count
Summary: GUI Spinner of instance based subscription needs to consider the inactive sub...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Devan Goodwin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel65
TreeView+ depends on / blocked
 
Reported: 2013-08-13 16:33 UTC by Rehana
Modified: 2015-05-14 14:53 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-05 13:47:01 UTC
Embargoed:


Attachments (Terms of Use)
future subscriptions (71.44 KB, image/png)
2013-08-13 16:34 UTC, Rehana
no flags Details
subscriptions_fortoday (86.01 KB, image/png)
2013-08-13 16:35 UTC, Rehana
no flags Details
fixed_count (71.80 KB, image/jpeg)
2013-09-27 07:17 UTC, Rehana
no flags Details

Description Rehana 2013-08-13 16:33:56 UTC
Description of problem:
On the guest machine,observed that the if a "Future" instance based subscription (Physical) is attached on the system, and then search for current subscription using sub-man-gui, saw that the GUI spinner was displaying default value as "Zero" instead of "One"

Version-Release number of selected component (if applicable):
subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.19-1
subscription-manager: 1.8.19-1.el5
python-rhsm: 1.8.16-1.el5


How reproducible:
4/4

Steps to Reproduce:
1.Attach a future instance based subscription on a guest machine
2.Search for an active  subscription for "today" 

Actual results:
Observed that the GUI spinner value of instance based subscription is displaying "0" , Can also see that the other future subscription attached during the test "Awesome OS with unlimited virtual guests" is displaying the correct value "1" ( PFA: future_subscriptions.png,subscritions_fortoday.png)

Expected results:
GUI Spinner of instace based subscription should consider the active/inactive subscription while displaying the default quantity count

Additional info:

Comment 1 Rehana 2013-08-13 16:34:36 UTC
Created attachment 786210 [details]
future subscriptions

Comment 2 Rehana 2013-08-13 16:35:49 UTC
Created attachment 786211 [details]
subscriptions_fortoday

Comment 3 Carter Kozak 2013-09-09 19:04:34 UTC
commit 12b5879bbf1b873ba349364cd2b10821bd07059c
Author: ckozak <ckozak>
Date:   Mon Sep 9 12:52:58 2013 -0400

    845600, 996672: fix suggested quantities

Comment 4 Bryan Kearney 2013-09-26 18:19:09 UTC
fixed in 0.8.27-1

Comment 5 Rehana 2013-09-27 07:14:42 UTC
Retested on 
 
subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.28-1

1.attached a future subscription 
 subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides:          Awesome OS Instance Server Bits
SKU:               awesomeos-instancebased
Contract:          1
Account:           12331131231
Serial:            6267055081301025381
Pool ID:           8ac6a36241539ee4014153a2031b0e1f
Active:            False
Quantity Used:     1
Service Level:     Standard
Service Type:      L1-L3
Status Details:    
Starts:            09/15/2014
Ends:              09/15/2015

2. List available for today (PFA: fixed_count.png)

Observed that the now GUI Spinner of instace based subscription is considering the active/inactive subscription to display the default quantity count

Hence moving this bug to "Verified"

Comment 6 Rehana 2013-09-27 07:17:35 UTC
Created attachment 803789 [details]
fixed_count


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