Bug 800999

Summary: Add new --servicelevel option to subscription-manager list --available
Product: Red Hat Enterprise Linux 6 Reporter: Michael Stead <mstead>
Component: subscription-managerAssignee: Michael Stead <mstead>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: jsefler, skallesh
Target Milestone: rc   
Target Release: 6.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:06:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 738066    

Description Michael Stead 2012-03-07 14:21:11 UTC
Description of problem:
A --servicelevel option would allow filtering the available subscriptions by SLA.

Expected results:
When using this option, the available subscription list results will be filtered by the SLA provided.

i.e subscription-manager list --available --servicelevel Premium

This will show all available subscriptions with an SLA of 'Premium'

Comment 2 John Sefler 2012-03-07 17:05:24 UTC
Note: This new option for the subscription-manager list module should only be used in combination with --available or --consumed (in the same way that --all is tolerated only with --available)

Comment 3 Michael Stead 2012-03-19 18:11:03 UTC
Fix added in commit: a5fa07fffe9d67aa542dbeac503ef56ea7f09006

Will be available in subscription-manager-0.99.11-1+

Comment 4 Shwetha Kallesh 2012-03-20 09:16:50 UTC
Moving to verified.

RPM used:
[root@kvm-guest-04 product]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.99.10-1.git.80.a5fa07f.el6.x86_64
subscription-manager-firstboot-0.99.10-1.git.80.a5fa07f.el6.x86_64
subscription-manager-migration-data-1.12.1.1-1.git.6.ea6813e.el6.noarch
subscription-manager-migration-0.99.10-1.git.80.a5fa07f.el6.x86_64
subscription-manager-0.99.10-1.git.80.a5fa07f.el6.x86_64


[root@kvm-guest-04 product]# subscription-manager list --consumed --servicelevel Premium
+-------------------------------------------+
    Consumed Product Subscriptions
+-------------------------------------------+

Product Name:         	Clustering Bits          
Contract Number:      	7                        
Account Number:       	12331131231              
Serial Number:        	1749805726707093393      
Active:               	True                     
Quantity Used:        	1                        
Service Level:        	Premium                  
Service Type :        	Level 3                  
Begins:               	03/18/2012               
Expires:              	03/18/2013               

Product Name:         	Awesome OS Server Bits   
Contract Number:      	7                        
Account Number:       	12331131231              
Serial Number:        	1749805726707093393      
Active:               	True                     
Quantity Used:        	1                        
Service Level:        	Premium                  
Service Type :        	Level 3                  
Begins:               	03/18/2012               
Expires:              	03/18/2013          



[root@kvm-guest-04 product]# subscription-manager list --available --servicelevel Premium
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+

Product Name:         	Awesome OS Server Bundled
Product Id:           	awesomeos-server         
Pool Id:              	00000000362ac75601362ac820dd0235
Quantity:             	5                        
Service Level:        	Premium                  
Service Type:        	Level 3                  
Multi-Entitlement:    	No                       
Expires:              	03/18/2013               
Machine Type:         	physical

Comment 6 errata-xmlrpc 2012-06-20 13:06:48 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-0804.html