Bug 640681

Summary: system.listFlexGuests(key) returns channel, which doesn't have flex entitlement
Product: Red Hat Satellite 5 Reporter: Jiri Kastner <jkastner>
Component: VirtualizationAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED WORKSFORME QA Contact: Jiri Kastner <jkastner>
Severity: medium Docs Contact:
Priority: medium    
Version: 540CC: cperry, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-30 11:45:34 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: 677498    

Description Jiri Kastner 2010-10-06 15:35:15 UTC
Description of problem:
when logged 

Version-Release number of selected component (if applicable):
satellite-5.4

How reproducible:


Steps to Reproduce:
1. prepare satellite
2. activate satellite with some flex entitlement certificate
3. register virtual guest to flex entitled channel
4. using snippet in comment call system.listFlexGuests
5. check results
  
Actual results:
returned two channels of same host, where rhn-tools channel has no flex entitlements

Expected results:
returned corresp. channels, where are some flex entitlements.

Additional info:

Comment 3 Milan Zázrivec 2011-05-30 11:45:34 UTC
satellite-schema-5.4.0.13-1 / spacewalk-java-1.2.39-81

I tried the scenario described in the initial comment and the results
I got were completely sane.

system.listFlexGuests() returns list of channel families and list of system
ids consuming flex entitlement from respective channel family pool.

system.listEligibleFlexGuests() returns list of channel families and list of
system ids eligible to consume flex entitlement from respective channel family
pool.

I'm closing this w/ worksforme.