Bug 751158

Summary: Virtual pools are being shown for SAM distributor consumers
Product: [Community] Candlepin Reporter: Jeff Abbott <jabbott>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.5CC: acarter, dgoodwin, jdornak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Solaris   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-01 14:43:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeff Abbott 2011-11-03 17:18:20 UTC
Description of problem:
When looking at available subscriptions for a Subscription Asset Manager consumer, "System: Virtual" pools are shown.  I believe this should not be the case, and that SAM consumers should only show physical pools.


How reproducible:
Always.


Steps to Reproduce:
1. Hit https://rails-fte.gss.devlab.phx1.redhat.com/management/distributors and log in as dev2_test_4 with the usual dev password.
2. Select the jabbott-test distributor, or create a new one of your choosing.
3. Look at the "Available Subscriptions" tab and note that it contains subscriptions of type "System: Virtual."

  
Actual results:
See above, in step #3.

Expected results:
There should only be "System: Physical" pools in available subs.

Comment 1 Devan Goodwin 2011-11-08 13:35:53 UTC
Have a fix ready for this but it is dependent on another patch being worked on that isn't in the repo yet. Will update shortly.

Comment 2 Devan Goodwin 2011-11-10 20:48:48 UTC
Modified the bind rule so manifest consumers cannot see or bind to anything
pool derived.

Will appear in candlepin-0.4.26-1:

master: 987f600f1f5e1b3bdf8a8d7ebb0d2c6e4457843f
0.4: e72a8d2da0709e344a3f3c782313563b544696e7

Comment 3 Jakub Dorňák 2012-03-01 10:42:59 UTC
I am just going to file bug saying:
When looking at available subscriptions for a Subscription Asset Manager
consumer, "System: Virtual" pools are not shown. I believe this should not be the
case, and that SAM consumers should show all pools.

How can I subscribe virtual machine to the virtual pool with SAM if I can't add virtual pool?

Comment 4 Amanda Carter 2012-03-01 14:43:51 UTC
SAM consumers only use physical pools and unbundle these locally to create the virt pools that belong to  the subscription. The intent is that you cannot use a virt pool in SAM without using the physical pool also. Allowing a user to break them apart in hosted will break that linkage in SAM. The display is working as designed.