Bug 1035694

Summary: In subscription-manager-gui, "Quantity" default value changed to 0 from 1 after Attach the Subscripion
Product: Red Hat Enterprise Linux 7 Reporter: xingge <gxing>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED NOTABUG QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: ckozak, ldai, liliu, qianzhan
Target Milestone: rc   
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-02 13:35:28 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: 863175    
Attachments:
Description Flags
screen shot when error happens none

Description xingge 2013-11-28 10:08:34 UTC
Description of problem:
In subscription-manager-gui, "Quantity" default value changed to 0 from 1 after Attach the Subscripion 

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

RHEL7.0-everything-20131127.1-x86_64
subscription-manager-gui-1.10.6-1.el7
subscription-manager-firstboot-1.10.6-1.el7
subscription-manager-1.10.6-1.el7
python-rhsm-1.10.6-1.el7

How reproducible:
always

Steps to Reproduce:
1.Register the system and open subscription-manager-gui
2.Go to "All Available Subscriptions" tab and press "Update" button
3.Select a Multi-entitlement subscription notice that the "Quantity"'s default value is "1", then press "Attach" button.
4.After the attachment, take a look at the Quantity value

Actual results:
The default value become to "0" not "1". please look at the attachment.

Expected results:
The default value should still be "1".

Additional info:

Comment 1 xingge 2013-11-28 10:10:01 UTC
Created attachment 830126 [details]
screen shot when error happens

Comment 2 Carter Kozak 2013-12-02 13:35:28 UTC
If the subscription is stackable, and the stack is already completely compliant, the suggested quantity should be zero, this seems correct.  If you click upon the quantity, it should become 1, because you cannot bind quantity 0.

This behavior occurs because separate subscriptions can stack together, and affect the quantity required of other pools.