Bug 761133

Summary: Subscription Assistant dialog neglects to assist compliance of Partially Subscribed products.
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: John Sefler <jsefler>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.8CC: dgoodwin, skallesh, spandey, wpoteat
Target Milestone: rc   
Target Release: 5.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:43:41 UTC Type: ---
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: 715031, 772956    
Attachments:
Description Flags
partially subscribed products are now included in the Subscription Assistant dialog none

Description John Sefler 2011-12-07 18:28:27 UTC
Description of problem:
Although the Subscription Assistant tool has evolved to assist subscribing to multi-entitlement pools with a positive quantity, the Subscription Assistant only works on products that are "Not Subscribed".  Products that are already "Partially Subscribed" are not being considered by the Subscription Assistant tool.

Version-Release number of selected component (if applicable):
[root@jsefler-onprem-5server ~]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.98.5-1.el5


How reproducible:


Steps to Reproduce:
1.Partially subscribe to an already installed product using a multi-entitlement pool.
2.Start the Subscription Assistant

  
Actual results:
The partially subscribed product is excluded from the Products list

Expected results:
Since the partially subscribed product is not fully compliant, the subscription assistant should help find pools that will provide for the partial socket coverage.


Additional info:

Comment 2 Devan Goodwin 2011-12-19 14:40:10 UTC
*** Bug 740759 has been marked as a duplicate of this bug. ***

Comment 3 Devan Goodwin 2011-12-19 16:14:32 UTC
As it stands now, adding partially valid products to this screen is just going to be confusing. The list of products out of compliance on the given date shows only two pieces of information, the name of the product, and the end date.

It will be very hard to convey that this is partially valid with just this information, so how do we want to represent that you are completing a partially valid subscription here? 

Perhaps the best would be to just display the status icon beside the installed product name (red or yellow), would this be sufficient?

Comment 4 Devan Goodwin 2011-12-20 20:29:08 UTC
Fixed in subscription-manager.git:

master: 559ef21dd8bde82a7bcb0e7b5f8ccc4868a77ada

RHEL-5.8: 175b4db6aa82003b1872182d57b0746c91ba4801

Comment 5 John Sefler 2011-12-21 19:45:01 UTC
Created attachment 549074 [details]
partially subscribed products are now included in the Subscription Assistant dialog

[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.98.9-1.git.3.4f81890.el5_7
subscription-manager-firstboot-0.98.9-1.git.3.4f81890.el5_7
subscription-manager-migration-0.98.9-1.git.3.4f81890.el5_7
subscription-manager-0.98.9-1.git.3.4f81890.el5_7

Status icons have newly been included in the rows of the installed products in the Subscription Assistant.

[root@jsefler-onprem-5server ~]# ls /etc/pki/product/
100000000000002.pem  37060.pem
[root@jsefler-onprem-5server ~]# subscription-manager facts --list | grep cpu_socket
cpu.cpu_socket(s): 4
lscpu.cpu_socket(s): 4

[root@jsefler-onprem-5server ~]# subscription-manager register --username testuser1 --password password --org admin
The system has been registered with id: c914366c-6011-466b-84c3-1375e4c42bda 

[root@jsefler-onprem-5server ~]# subscription-manager list --avail | egrep "Awesome OS for x86_64 *$" -A7
ProductName:          	Stackable with Awesome OS for x86_64
ProductId:            	stackable-with-awesomeos-x86_64
PoolId:               	8a90f857345e267001345e2769c102e4
Quantity:             	5                        
Multi-Entitlement:    	No                       
Expires:              	01/18/2013               
MachineType:          	physical                 

ProductName:          	Awesome OS for x86_64    
ProductId:            	awesomeos-x86_64         
PoolId:               	8a90f857345e267001345e2769fd02f9
Quantity:             	10                       
Multi-Entitlement:    	Yes                      
Expires:              	01/18/2013               
MachineType:          	physical                 

ProductName:          	Awesome OS for x86_64    
ProductId:            	awesomeos-x86_64         
PoolId:               	8a90f857345e267001345e276a210304
Quantity:             	5                        
Multi-Entitlement:    	Yes                      
Expires:              	01/18/2013               
MachineType:          	physical                 

--
ProductName:          	Stackable with Awesome OS for x86_64
ProductId:            	stackable-with-awesomeos-x86_64
PoolId:               	8a90f857345e267001345e2769a102da
Quantity:             	10                       
Multi-Entitlement:    	No                       
Expires:              	01/18/2013               
MachineType:          	physical                 

[root@jsefler-onprem-5server ~]# subscription-manager subscribe --pool 8a90f857345e267001345e2769fd02f9 --quantity 1
Successfully consumed a subscription from the pool with id 8a90f857345e267001345e2769fd02f9

[root@jsefler-onprem-5server ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
ProductName:          	Awesome OS for x86_64 Bits
Version:              	3.11                     
Arch:                 	x86_64                   
Status:               	Partially Subscribed     
Starts:               	11/19/2011               
Expires:              	01/18/2013               

ProductName:          	Awesome OS Server Bits   
Version:              	6.1                      
Arch:                 	ALL                      
Status:               	Not Subscribed           
Starts:               	None                     
Expires:              	None  

[root@jsefler-onprem-5server ~]# 

^^^ ALL OF THIS LOOKS GOOD.  NOW START UP THE GUI AND CLICK THE "Update" BUTTON SEE attached screenshot.
[root@jsefler-onprem-5server ~]# subscription-manager-gui&

1. VERIFIED.. The partially subscribed product circled is now listed in the Subscription Assistant dialog.
2. VERIFIED.. The default quantity suggested in the subscription assistant for the yellow product is just enough to complete the socket coverage.

Moving to VERIFIED

Comment 6 William Poteat 2012-01-23 15:45:18 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:
No description necessary

Comment 7 errata-xmlrpc 2012-02-21 06:43:41 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