Bug 1341087

Summary: Cannot do a compliance check on a host
Product: Red Hat CloudForms Management Engine Reporter: Milan Falešník <mfalesni>
Component: ControlAssignee: Bill Wei <bilwei>
Status: CLOSED ERRATA QA Contact: Dmitry Misharov <dmisharo>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, dajohnso, jhardy, mfeifer, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: control:compliance
Fixed In Version: 5.6.0.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 16:06:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Falešník 2016-05-31 08:59:10 UTC
Description of problem:
It is not possible to run a compliance check on a host

Version-Release number of selected component (if applicable):
5.6.0.8-rc1

How reproducible:
always

Steps to Reproduce:
1. Add a provider (I used QE's vsphere55)
2. Create some host compliance policy, add a condition to it - I used Tag Location - Chicago
3. Attach the policy to the provider
4. Go to the Hosts, mark one and select Policy / Check compliance of last known configuration
5. An error appears:
Host / Node "XYZ": Error during 'Compliance Check': undefined method `validate_check_compliance_queue' for #<ManageIQ::Providers::Vmware::InfraManager::HostEsx:0x0000001217f180>
6. Click to dismiss it, open the host details, do the compliance check from there, the same error appears.

Actual results:
Desribed in steps

Expected results:
The compliance should run and finish with Non-Compliant because the tag is not set.

Additional info:
qe test coverage in test_condition_tag[host] (compliance is the fastest way how to verify that TC).

Comment 3 CFME Bot 2016-06-01 19:20:53 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/214fccfaa1b1044eae8a48c33582600a0d788da5

commit 214fccfaa1b1044eae8a48c33582600a0d788da5
Author:     Bill Wei <bilwei>
AuthorDate: Wed Jun 1 10:19:05 2016 -0400
Commit:     Bill Wei <bilwei>
CommitDate: Wed Jun 1 10:19:05 2016 -0400

    Always allow check_compliance for host
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1341087

 app/models/host.rb                                         | 8 ++++++++
 app/models/manageiq/providers/redhat/infra_manager/host.rb | 8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)

Comment 4 Dmitry Misharov 2016-06-08 06:23:52 UTC
Verified fixed in 5.6.0.10-rc2.1.20160607103248_d06c141.

Comment 7 errata-xmlrpc 2016-06-29 16:06:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348