Bug 683553 - subscription-manager-gui is displaying unlimited pools as -1
Summary: subscription-manager-gui is displaying unlimited pools as -1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 5.7
Assignee: Chris Duryee
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 675214 701374
TreeView+ depends on / blocked
 
Reported: 2011-03-09 17:13 UTC by John Sefler
Modified: 2011-07-21 12:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 701374 (view as bug list)
Environment:
Last Closed: 2011-07-21 08:45:28 UTC
Target Upstream Version:


Attachments (Terms of Use)
"unlimited" versus -1 (54.99 KB, image/png)
2011-03-09 17:15 UTC, John Sefler
no flags Details
"unlimited" versus -1 (53.68 KB, image/png)
2011-03-09 17:15 UTC, John Sefler
no flags Details
"unlimited" fix for All Available Subscriptions (58.14 KB, image/png)
2011-05-09 18:54 UTC, John Sefler
no flags Details
"unlimited" versus -1 in the Contract Selection Dialog (29.61 KB, image/png)
2011-05-09 19:28 UTC, John Sefler
no flags Details
fix for unlimited in Contract Selection dialog (63.66 KB, image/png)
2011-05-19 21:50 UTC, John Sefler
no flags Details
subscriptions now show in the subscription-assistant as "unlimited" rather than "-1" (52.59 KB, image/png)
2011-05-26 22:51 UTC, John Sefler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1078 0 normal SHIPPED_LIVE new package: subscription-manager 2011-07-21 08:45:07 UTC

Description John Sefler 2011-03-09 17:13:37 UTC
Description of problem:
Although the json value for an unlimited quantity in a pool is -1, the value rendered in the gui should be "unlimited".



The places to watch for this value are:
1. the All Available Subscriptions tab 
2. the Become Compliant window under the "Available Subscription" column
3. the contract selection dialog

See the attached screen shots for 1. and 2.  I'm guessing that the problem will be on 3. as well.


The command line tool is correctly displaying "unlimited":

[root@jsefler-onprem03 tmp]# subscription-manager list --available | grep -A5 "Awesome OS Developer"
ProductName:       	Awesome OS Developer Basic
ProductId:         	1144                     
PoolId:            	8a90f8b42e9900f9012e9989f1191c96
Quantity:          	unlimited                
Expires:           	2012-03-07  


Version-Release number of selected component (if applicable):
[root@jsefler-onprem03 tmp]# rpm -qa | grep subscription-manager
subscription-manager-0.95.4-1.git.1.bb03d4e.el6.x86_64
subscription-manager-firstboot-0.95.4-1.git.1.bb03d4e.el6.x86_64
subscription-manager-gnome-0.95.4-1.git.1.bb03d4e.el6.x86_64

Comment 1 John Sefler 2011-03-09 17:15:11 UTC
Created attachment 483265 [details]
"unlimited" versus -1

Comment 2 John Sefler 2011-03-09 17:15:35 UTC
Created attachment 483266 [details]
"unlimited" versus -1

Comment 4 RHEL Program Management 2011-04-04 01:48:13 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 6 Chris Duryee 2011-04-13 17:37:41 UTC
Fixed on RHEL5.7 branch in 710e3f0f3d4204a37e0bbc1f5da2f22c47b0d643, version 0.95.5.8

Comment 7 Chris Duryee 2011-04-13 17:38:16 UTC
Fixed on master branch in 129ad420940e72703a50b4f0c5674816a5c28dce, version 0.96.2

Comment 8 John Sefler 2011-05-09 18:53:09 UTC
Verifying Version...
[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-manager
subscription-manager-0.95.5.10-1.git.6.ad7cd7d.el5
subscription-manager-gnome-0.95.5.10-1.git.6.ad7cd7d.el5
subscription-manager-firstboot-0.95.5.10-1.git.6.ad7cd7d.el5
[root@jsefler-onprem-5server ~]# rpm -q subscription-manager --changelog | grep 683553
- 683553: subscription-manager-gui is displaying unlimited pools as -1

Verifying against an onpremises candlepin server with TESTDATA=1...

[root@jsefler-onprem-5server ~]# subscription-manager register --username=testuser1 --password=password --type=person
8899452c-d73a-4641-8da4-d19a3ae0a36f testuser1
[root@jsefler-onprem-5server ~]# subscription-manager list --avail
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+


ProductName:       	Awesome OS Developer Edition
ProductId:         	AWESOMEOS09XYU34         
PoolId:            	8a90f8bb2fd522e3012fd523a92701dc
Quantity:          	10                       
Expires:           	05/07/2012               


ProductName:       	Awesome OS Developer Edition
ProductId:         	AWESOMEOS09XYU34         
PoolId:            	8a90f8bb2fd522e3012fd523a94d01de
Quantity:          	5                        
Expires:           	05/07/2012               

[root@jsefler-onprem-5server ~]# subscription-manager subscribe --pool=8a90f8bb2fd522e3012fd523a92701dc
[root@jsefler-onprem-5server ~]# subscription-manager clean
All local data removed
[root@jsefler-onprem-5server ~]# subscription-manager register --username=testuser1 --password=password --type=system
9d9f49eb-fcea-484b-84e7-1ea637f63eec jsefler-onprem-5server.usersys.redhat.com
[root@jsefler-onprem-5server ~]# subscription-manager list --avail | grep -A5 "Awesome OS Developer"
ProductName:       	Awesome OS Developer Basic
ProductId:         	1144                     
PoolId:            	8a90f8bb2fd522e3012fd5fadb211288
Quantity:          	unlimited                
Expires:           	05/07/2012               


^^^ VERIFIED quantity shows as "unlimited" in cli (this was already working)

[root@jsefler-onprem-5server ~]# subscription-manager-gui&
[1] 31442


See attached screenhot for: "unlimited" fix for All Available Subscriptions

Comment 9 John Sefler 2011-05-09 18:54:57 UTC
Created attachment 497891 [details]
"unlimited" fix for All Available Subscriptions

Comment 10 John Sefler 2011-05-09 19:10:32 UTC
Moving back to NEW state to fix case 2 which is still failing and was overlooked in the first fix.
2. the Become Compliant window under the "Available Subscription" column

See attachment 483266 [details]

Also don't forget to look at the third case:
3. the contract selection dialog
PS. I don't have any data to test this third case.  Do we know of a way to see two contracts for the same product and one of them is unlimited?

Comment 11 John Sefler 2011-05-09 19:28:12 UTC
Created attachment 497900 [details]
"unlimited" versus -1 in the Contract Selection Dialog

Here is a screenshot for the third case.  I captured it using the qa account.

Also note the following is printed (against rhel6 branch) to the console when opening the contract selection dialog:

(subscription-manager-gui:7142): libglade-WARNING **: unknown property `mnemonics_visible' for class `GtkWindow'
/usr/share/rhsm/gui/contract_selection.py:60: Warning: unable to set property `date' of type `PyObject' from value of type `gchararray'
  self.contract_selection_win.show_all()
/usr/sbin/subscription-manager-gui:107: Warning: unable to set property `date' of type `PyObject' from value of type `gchararray'
  sys.exit(gtk.main() or 0)

Comment 13 spandey 2011-05-19 12:23:32 UTC
Verified using following rpm 

subscription-manager-0.95.5.18-1.git.4.364aa10.el5
subscription-manager-gnome-0.95.5.18-1.git.4.364aa10.el5
subscription-manager-firstboot-0.95.5.18-1.git.4.364aa10.el5

displaying unlimited in gui 
simultaneously tested with 2 rhel5.7 and 1 rhel6.1.

Not able to find contract selection page.

Comment 14 John Sefler 2011-05-19 21:50:59 UTC
Created attachment 499954 [details]
fix for unlimited in Contract Selection dialog

Verified version...
[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.95.5.18-1.el5
subscription-manager-0.95.5.18-1.el5
subscription-manager-gnome-0.95.5.18-1.el5

Comment 15 John Sefler 2011-05-19 22:16:07 UTC
still need to verify fix for attachment 483266 [details]

Comment 16 John Sefler 2011-05-26 22:51:34 UTC
Created attachment 501205 [details]
subscriptions now show in the subscription-assistant as "unlimited" rather than "-1"

Verifying Version...
[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.95.5.19-1.git.2.2a89d48.el5
subscription-manager-0.95.5.19-1.git.2.2a89d48.el5
subscription-manager-gnome-0.95.5.19-1.git.2.2a89d48.el5

[root@jsefler-onprem-5server ~]# subscription-manager register --username=testuser1 --type=person
Password: 
bbddbccb-f3cb-409f-bc25-f776c879702b testuser1
[root@jsefler-onprem-5server ~]# 
[root@jsefler-onprem-5server ~]# subscription-manager list --avail
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+


ProductName:       	Awesome OS Developer Edition
ProductId:         	AWESOMEOS09XYU34         
PoolId:            	8a90f8bb302a7a7b01302a7b52c401db
Quantity:          	10                       
Expires:           	05/24/2012               


ProductName:       	Awesome OS Developer Edition
ProductId:         	AWESOMEOS09XYU34         
PoolId:            	8a90f8bb302a7a7b01302a7b52ec01dd
Quantity:          	5                        
Expires:           	05/24/2012               


[root@jsefler-onprem-5server ~]# subscription-manager subscribe --pool=8a90f8bb302a7a7b01302a7b52ec01dd
[root@jsefler-onprem-5server ~]# subscription-manager clean
All local data removed
[root@jsefler-onprem-5server ~]# subscription-manager register --username=testuser1 --type=system
Password: 
c64498bc-33b8-4989-a643-c50bfe86c536 jsefler-onprem-5server.usersys.redhat.com

[root@jsefler-onprem-5server ~]# subscription-manager-gui&

Comment 17 errata-xmlrpc 2011-07-21 08:45:28 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-1078.html

Comment 18 errata-xmlrpc 2011-07-21 12:29:50 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-1078.html


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