Bug 804810

Summary: through System Set Manager - flex Guest unable to subscribe to child channel if regular entitlement runs out, even if flex guest entitlements available
Product: [Community] Spacewalk Reporter: Stephen Herr <sherr>
Component: WebUIAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: high    
Version: 1.8CC: cperry, fdacunha, pmutha, slukasik, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 716484 Environment:
Last Closed: 2012-11-01 16:17:54 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: 716484    
Bug Blocks: 871344    

Description Stephen Herr 2012-03-19 20:07:03 UTC
+++ This bug was initially created as a clone of Bug #716484 +++

Description of problem:
If regular available subscriptions for a particular child channel are 0, trying to subscribe flex guests to that child channel through System Set Manager fails with an Internal Server Error

Also if there was 1 regular subscription available for that child channel and when you select more than 1 flex guest systems to subscribe to that child channel, it just subscribes 1 system to that child channel and skips the remaining systems.

Version-Release number of selected component (if applicable):
RHN Satellite v5.4.1

How reproducible:
Always

Steps to Reproduce:
Prerequisite:
Satellite with fewer regular entitlements and more flex guest entitlements.
Example:
1 regular and 7 flex


1. Register 1 regular system and 2 flex guest systems on Satellite
2. Subscribe the regular system to RHN Tools channel
3. Select the 2 flex systems -> System Set Manager -> Channel -> select RHN Tools channel -> select subscribe and click on Alter Subscriptions
  
Actual results:
Fails with an ISE

Expected results:
It should subscribe the system to RHN Tools channel as there are 7 flex subscriptions available for it

Additional info:
This issue is very much similar to https://bugzilla.redhat.com/show_bug.cgi?id=673394 . But in bz#673394 we were unable to system system manually through alter channel subscription and in the current case we can't subscribe systems through system set manager.

Comment 1 Stephen Herr 2012-03-19 20:11:23 UTC
Fixed in spacewalk master: c60f37a013cb7baddc90324314d4a8927a709608

Comment 2 Stephen Herr 2012-03-20 13:51:25 UTC
And c689edbf4b384c63d8a1752aa48a409e8310c7e3

Comment 4 Stephen Herr 2012-04-05 18:09:04 UTC
Also fixing inherited virtualization / virtualization platform entitlements for System Set Manager: 23b4958b010f710dbd0bafb6e65aca89b96439bb

Comment 6 Jan Pazdziora (Red Hat) 2012-10-30 19:22:52 UTC
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/

Comment 7 Jan Pazdziora (Red Hat) 2012-11-01 16:17:54 UTC
Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18