Bug 783474 - Owner Info On Compliance Our of Date Until All System's Check In
Summary: Owner Info On Compliance Our of Date Until All System's Check In
Keywords:
Status: CLOSED DUPLICATE of bug 761321
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: Eric Sammons
URL:
Whiteboard:
Depends On:
Blocks: 761321
TreeView+ depends on / blocked
 
Reported: 2012-01-20 15:00 UTC by Devan Goodwin
Modified: 2015-05-14 14:53 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-01-25 13:29:20 UTC
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.