Bug 996672

Summary: GUI Spinner of instance based subscription needs to consider the inactive subscripton while displaying default quantity count
Product: [Community] Candlepin Reporter: Rehana <redakkan>
Component: candlepinAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9CC: bkearney, ckozak, dgoodwin, jsefler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-05 13:47:01 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: 862910    
Attachments:
Description Flags
future subscriptions
none
subscriptions_fortoday
none
fixed_count none

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