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:
https://github.com/ManageIQ/manageiq/pull/14427
Dima, It seems this is your BZ. Please reassign it to me if cause is relevant to events.
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]