Bug 755861 - SM GUI : Not able to change quantity for multi entitlement subscription.
Summary: SM GUI : Not able to change quantity for multi entitlement subscription.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: beta
: 5.8
Assignee: Michael Stead
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 715031 769266
TreeView+ depends on / blocked
 
Reported: 2011-11-22 09:29 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2012-02-21 06:43:09 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

Description spandey 2011-11-22 09:29:26 UTC
Description of problem:


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


How reproducible:
3/3

Prerequisites : 
Rhel 5.8 KVM with following subscription-manager rpm 
subscription-manager-migrate-1.0-3

subscription-manager-firstboot-0.98.3-1.git.2.1a022f3.el5_7

subscription-manager-0.98.3-1.git.2.1a022f3.el5_7

subscription-manager-gnome-0.98.3-1.git.2.1a022f3.el5_7

subscription-manager-migration-0.98.3-1.git.2.1a022f3.el5_7

python-rhsm-0.98.3-1.git.2.74cd6bb.el5_7

Steps to Repro : 
Register client to candlepin.
Select Sackable “Awesome OS for x86_64” , change quantity in contract selection box and subscribe  .

Expected Result : 
Quantity should changed in contract selection box , 
Update quantity should subscribe and displayed in “My Subscriptions” tab 

Actual Result : 
Not able to adjust quantity in contract selection box , taking default value.

Comment 1 spandey 2011-11-22 09:32:34 UTC
RHEL 5.8 KVM guest

Comment 2 spandey 2011-11-22 12:59:52 UTC
duplicate of defect https://bugzilla.redhat.com/show_bug.cgi?id=723248

*** This bug has been marked as a duplicate of bug 723248 ***

Comment 3 John Sefler 2011-11-22 13:39:24 UTC
I do NOT believe this is a duplicate of bug 723248.
I am reopening this defect...

When I manually try to change the quantity, I see the following traceback in the console:

[root@jsefler-onprem-5server product]# Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/widgets.py", line 590, in _on_edit
    model = self._get_model()
  File "/usr/share/rhsm/subscription_manager/gui/widgets.py", line 608, in _get_model
    return self.get_tree_view().get_model()
AttributeError: 'QuantitySelectionColumn' object has no attribute 'get_tree_view'

Comment 4 J.C. Molet 2011-12-06 18:43:27 UTC
This applies to the contract selection box, the subscription-search, and the subscription-assistant.

Slightly updated traceback from git revision: eaed6934f994a5cba18b837a0b41ac8d3dbb0a5e


Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/widgets.py", line 617, in _on_edit
    model = self._get_model()
  File "/usr/share/rhsm/subscription_manager/gui/widgets.py", line 641, in _get_model
    return self.get_tree_view().get_model()
AttributeError: 'QuantitySelectionColumn' object has no attribute 'get_tree_view'


Bumping this to high severity as it kind of blocks my working on many other issues.

Comment 5 Michael Stead 2011-12-12 13:44:16 UTC
Fixed in master branch: a7a5a30c1cfcc7a4c473b1fdc1e5faaffd782a63

Fixes value selection and the passing of correct values on submit.

Comment 6 Michael Stead 2011-12-12 13:44:16 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This bug was due to the fact that 5.8 is using an older version of pygtk.

Comment 7 J.C. Molet 2011-12-12 14:59:43 UTC
subscription-manager-gnome-0.98.7-1.git.2.a7a5a30.el5_7

Tested in above build.

I've tested this this in the following scenarios:
 - Subscription Assistant
 - All available Subscriptions
 - Contract Selections

In each case I've verified that the max/min values are set correctly, and that the quantity can be changed with both text entry and the arrow buttons

This widget works in all these cases.  Marking VERIFIED.

Comment 8 William Poteat 2012-01-23 15:16:20 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-This bug was due to the fact that 5.8 is using an older version of pygtk.+No description necessary

Comment 9 errata-xmlrpc 2012-02-21 06:43:09 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-2012-0154.html


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