Bug 1437910 - Policy to prevent a host scan request did not work
Summary: Policy to prevent a host scan request did not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Control
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: 5.9.0
Assignee: Lucy Fu
QA Contact: Dmitry Misharov
URL:
Whiteboard: control:policy
Depends On:
Blocks: 1437922 1437925 1437926
TreeView+ depends on / blocked
 
Reported: 2017-03-31 12:37 UTC by Lucy Fu
Modified: 2018-03-06 15:09 UTC (History)
4 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1437922 1437925 1437926 (view as bug list)
Environment:
Last Closed: 2018-03-06 15:09:53 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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]


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