Bug 783474

Summary: Owner Info On Compliance Our of Date Until All System's Check In
Product: [Community] Candlepin Reporter: Devan Goodwin <dgoodwin>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED DUPLICATE QA Contact: Eric Sammons <esammons>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9CC: tomckay
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-25 13:29:20 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: 761321    

Description Devan Goodwin 2012-01-20 15:00:37 UTC
Description of problem:

Owner info compliance data is using the consumer facts to sort compliance status. Fact is sent by the client, so if a SAM/Katello UI user assigns subscriptions, their org can still show out of compliance even when they just fixed it, until the relevant systems check in.

Steps to Reproduce:
1. Register a non-compliant consumer to Candlepin.

2. Manually trigger an auto-bind by hitting REST API directly: curl -X POST -i -k -u admin:admin https://localhost:8443/candlepin/consumers/fba46ffd-7768-4b12-bba1-d222cafd9ead/entitlements

3. See that server can see the system as compliant: curl -i -k -u admin:admin https://localhost:8443/candlepin/consumers/fba46ffd-7768-4b12-bba1-d222cafd9ead/compliance

  "status" : "valid",

4. View owner info: curl -i -k -u admin:admin https://localhost:8443/candlepin/owners/admin/info

  
Actual results:

  "consumerCountsByComplianceStatus" : {
    "invalid" : 1
  },


Expected results: 

In this case above, one system in one org, there should be no invalid systems.

This is because owner info is driven by the client submitted fact, but when the client has not yet checked in, it remains invalid even though the admin just made it compliant, and will now be very confused when looking at Katello/SAM compliance graphs.


Additional info:

Comment 1 Tom McKay 2012-01-25 13:29:20 UTC

*** This bug has been marked as a duplicate of bug 761321 ***