Bug 1437910

Summary: Policy to prevent a host scan request did not work
Product: Red Hat CloudForms Management Engine Reporter: Lucy Fu <lufu>
Component: ControlAssignee: Lucy Fu <lufu>
Status: CLOSED CURRENTRELEASE QA Contact: Dmitry Misharov <dmisharo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: izapolsk, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: control:policy
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1437922 1437925 1437926 (view as bug list) Environment:
Last Closed: 2018-03-06 15:09:53 UTC Type: Bug
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: 1437922, 1437925, 1437926    

Description Lucy Fu 2017-03-31 12:37:20 UTC
Description of problem:
Action "Prevent current event from proceeding" doesn't work for "request_host_scan" event.


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


How reproducible:


Steps to Reproduce:
1. Create a control host policy with "Host Analysis Request" event and "Prevent current event from proceeding" action.
2. Assign that policy to a host.
3. Run Smartstate Analysis for a host.

Actual results:
Host Smartstate Analysis was executed.

Expected results:
Host Smartstate Analysis should not be executed.

Additional info:

Comment 6 Ievgen Zapolskyi 2017-10-10 11:15:48 UTC
Dima, 
It seems this is your BZ. Please reassign it to me if cause is relevant to events.

Comment 7 Dmitry Misharov 2017-10-18 09:01:03 UTC
Verified in 5.9.0.2.20171010190026_0413a06. policy.log excerpt:
[----] I, [2017-10-18T04:58:56.583702 #2096:f1f130]  INFO -- : MIQ(policy-enforce_policy): Event: [request_host_scan], To: [env-nvc60-h01]
[----] I, [2017-10-18T04:58:56.627365 #2096:f1f130]  INFO -- : MIQ(policy-enforce_policy): Resolving policy [Prevent SSA]...
[----] I, [2017-10-18T04:58:56.711202 #2096:f1f130]  INFO -- : MIQ(action-invoke) Invoking action [Prevent current event from proceeding] for successful policy [Prevent SSA], event: [Host Analysis Request], entity name: [env-nvc60-h01], entity type: [Host (Vmware)], sequence: [1], synchronous? [true]
[----] I, [2017-10-18T04:58:56.711463 #2096:f1f130]  INFO -- : MIQ(action-invoke) [preventing current process from proceeding due to policy failure]