Bug 799338

Summary: subscribed systems with not enough entitlements are "red" (should be "yellow")
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: Subscription ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: bkearney, mkoci, tomckay
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-05 14:44:16 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 Garik Khachikyan 2012-03-02 14:27:21 UTC
Description of problem:
When the org gets exhausted with the entitlements (e.g. product: "Red Hat Enterprise Linux Server") further systems getting autosubscribed getting status "red" but should be yellow "Insufficient Entitlements"

Version-Release number of selected component (if applicable):
recent CFSE beta.

How reproducible:
always.

Steps to Reproduce:
1.generate manifest having 2 subscriptions of "Red Hat Enterprise Linux Server"
2.register & subscribe 2 diff. systems
3.get 3rd system subscribing there
4. check status of system in UI - red
  
Actual results:
Registered system has "red" status 

Expected results:
should get "yellow" 

Additional info:

Comment 1 Tom McKay 2012-03-05 14:44:16 UTC
1. GREEN A system is registered and has all of its software subscribed with all of its sockets covered.

2. GREEN A system is registered and has no installed software (ie. nothing to cover).

3. RED A system has one or more of its installed software that does not exist in the manifest.

4. RED A system has an installed software but is not subscribed to that subscription from the manifest. (ie. It is RED even though a subscription exists that could be used.)

5. RED A system has an installed software but is not subscribed to that subscription because other systems have used up the available. (ie. It is RED because all of the available subscriptions are being used.)

6. YELLOW A system is subscribed to a subscription that covers its installed product, but the subscription is stackable and is for two sockets and the system has four. (ie. does not cover all the sockets, just some)

7. YELLOW #6 but the subscription is not stackable. YELLOW because sockets are > than 0 and < the number of the machines