Bug 734896

Summary: multi-entitlement subscribe attempts are NOT getting rejected for non multi-entitlement pools
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2CC: khong, skallesh, spandey, wpoteat
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: 2011-12-06 17:23:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 682238    

Description John Sefler 2011-08-31 19:20:10 UTC
Description of problem:
In the stage environment, my attempts to subscribe with --quatity>1 against a pool whose Multi-Entitlement is No are not getting blocked.


Version-Release number of selected component (if applicable):
[root@jsefler-stage-6server ~]# rpm -q subscription-manager
subscription-manager-0.96.7-1.el6.x86_64
I SUSPECT THIS IS A CANDLEPIN BUG, BUT I DON"T KNOW WHAT VERSION IS DEPLOYED IN STAGE.


How reproducible:


Steps to Reproduce:
[root@jsefler-stage-6server ~]# grep hostname /etc/rhsm/rhsm.conf
# Server hostname:
hostname=subscription.rhn.stage.redhat.com
proxy_hostname=


[root@jsefler-stage-6server ~]# subscription-manager register --user stage_test_12
Password: 
The system has been registered with id: 2a4c55fc-cb78-42f6-a31a-e8836d198075 
[root@jsefler-stage-6server ~]# subscription-manager list --avail
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+


ProductName:       	Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to
                        4 guests)
ProductId:         	RH0103708                
PoolId:            	8a99f981308acf4201308b9ad4a41d37
Quantity:          	91                       
Multi-Entitlement: 	No                       
Expires:           	06/08/2012               
MachineType:       	physical                 


ProductName:       	Red Hat Enterprise Linux Server, Premium (8 sockets) (Up to
                        4 guests)
ProductId:         	RH0103708                
PoolId:            	8a99f981308acf4201308b9ad7101d3a
Quantity:          	400                      
Multi-Entitlement: 	No                       
Expires:           	06/08/2012               
MachineType:       	virtual                  


ProductName:       	Red Hat Enterprise Linux Advanced Platform, Standard L3
                        (unlimited sockets)
ProductId:         	MCT1035                  
PoolId:            	8a99f981308acf4201309911639a0c51
Quantity:          	96                       
Multi-Entitlement: 	No                       
Expires:           	06/15/2012               
MachineType:       	physical                 


ProductName:       	Red Hat Enterprise Linux Advanced Platform, Standard L3
                        (unlimited sockets)
ProductId:         	MCT1035                  
PoolId:            	8a99f981308acf420130991163ac0c56
Quantity:          	unlimited                
Multi-Entitlement: 	No                       
Expires:           	06/15/2012               
MachineType:       	virtual                  

[root@jsefler-stage-6server ~]# subscription-manager subscribe --pool=8a99f981308acf420130991163ac0c56 --quantity=10
Successfully subscribed the system to Pool 8a99f981308acf420130991163ac0c56

^^^ I EXPECTED THAT RESULT TO BE BLOCKED WITH:
Multi-entitlement not supported for pool with id '8a99f981308acf420130991163ac0c56'.

[root@jsefler-stage-6server ~]# subscription-manager subscribe --pool=8a99f981308acf4201308b9ad7101d3a --quantity=10
Successfully subscribed the system to Pool 8a99f981308acf4201308b9ad7101d3a


^^^ I EXPECTED THAT RESULT TO BE BLOCKED WITH:
Multi-entitlement not supported for pool with id '8a99f981308acf4201308b9ad7101d3a'.

Comment 1 John Sefler 2011-08-31 19:23:36 UTC
Note: I can NOT reproduce this bug against my local onpremises candlepin deployed with TESTDATA=1.  This same test passes against my onpremises environment.

Comment 2 William Poteat 2011-09-09 15:10:28 UTC
Corrected here

https://bugzilla.redhat.com/show_bug.cgi?id=729070

In versions >= candlepin-0.4.11-1

Comment 4 Shwetha Kallesh 2011-09-14 06:49:59 UTC
Moving the bug to verified..

RPM used:

rpm -q subscription-manager
subscription-manager-0.96.9-1.git.10.adab5e3.el6.x86_64

Steps to reproduce the same:

subscription-manager subscribe --pool=ff8080813255d44a013255d53aca0719 --quantity=10
Multi-entitlement not supported for pool with id 'ff8080813255d44a013255d53aca0719'.

Comment 5 errata-xmlrpc 2011-12-06 17:23:52 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-2011-1695.html