Hide Forgot
Description of problem: Compliance status and history is not shown in the web ui after compliance checking if a compliance policy is unconditional. In the other hand policy.log contains lines related to the policy. Version-Release number of selected component (if applicable): 5.6.1.2.20160810181333_8ba817b How reproducible: Always Steps to Reproduce: 1. Navigate to Control->Explorer. 2. Expand Policy accordion. 3. Create an unconditional compliance policy for VM, host or whatever. 4. Create a policy profile with that policy. 5. Assign the policy profile to an appropriate item (VM, host etc). 6. In Policy menu of the item click on "Check Compliance of Last Known Configuration". 7. Refresh the page after a while. Actual results: There is no changes in Compliance section of the item, but policy.log contains events related with the policy. Expected results: Compliance section must contain result of the compliance checking.
https://github.com/ManageIQ/manageiq/pull/11067
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/74b6461c5a18f0d86e6ad4e348245bb01b33d559 commit 74b6461c5a18f0d86e6ad4e348245bb01b33d559 Author: Lucy Fu <lufu> AuthorDate: Wed Sep 7 10:14:27 2016 -0400 Commit: Lucy Fu <lufu> CommitDate: Wed Sep 7 13:52:04 2016 -0400 Fix the issue that compliance check history isn't shown if compliance policy is unconditional. A compliance detail record is required to display the compliance check history. Create a compliance detail record for unconditional compliance policy. https://bugzilla.redhat.com/show_bug.cgi?id=1369488 app/models/miq_policy.rb | 2 ++ spec/models/compliance_spec.rb | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+)
Fixed and verified in 5.7.0.1.20160913164703_66caf07.