Bug 1454936

Summary: SmartState required automate server roles enabled on the worker has SmartProxy role enabled
Product: Red Hat CloudForms Management Engine Reporter: Saif Ali <saali>
Component: SmartState AnalysisAssignee: Lucy Fu <lufu>
Status: CLOSED CURRENTRELEASE QA Contact: Satyajit Bulage <sbulage>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: akarol, brant.evans, gmccullo, jhardy, jocarter, mfeifer, obarenbo, saali, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1457899 1460339 (view as bug list) Environment:
Last Closed: 2018-03-06 15:53:25 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: 1457899, 1460339    

Description Saif Ali 2017-05-23 19:49:07 UTC
Description of problem:
SmartState required automate server roles enabled on the worker has SmartProxy role enabled

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Rich Oliveri 2017-05-23 19:56:50 UTC
This is not a bug, it's by design.
GregM, is that correct?

Comment 4 Greg McCullough 2017-05-24 16:06:12 UTC
4.2 introduced the event switchboard which passes all events into automate.  At the start of the vm scan job we raise a vm_scan_start (VM Analysis Start) event which is what I currently assume is creating this dependency.

Comment 12 CFME Bot 2017-05-30 22:56:33 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/234af0ae7875f1cdc0663d12e15f9896799f397b

commit 234af0ae7875f1cdc0663d12e15f9896799f397b
Author:     Lucy Fu <lufu>
AuthorDate: Thu May 25 09:11:28 2017 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Tue May 30 17:51:43 2017 -0400

    Queue the VM scan command after vm_scan_start event is handled by automate.
    
    All events are handled by automate role server. And VM scan is handled only by SmartState role server.
    Queueing the VM scan signal for next step allows the separation of these two server roles.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1454936

 app/models/vm_scan.rb       |  24 ++++++---
 spec/models/vm_scan_spec.rb | 125 +++++++++++++++++++++++++++++++++++++-------
 2 files changed, 123 insertions(+), 26 deletions(-)

Comment 13 CFME Bot 2017-05-30 22:56:39 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e86b4a0bb0edc661beaa2d3dc9fd5aa225516a67

commit e86b4a0bb0edc661beaa2d3dc9fd5aa225516a67
Author:     Lucy Fu <lufu>
AuthorDate: Thu May 25 09:12:44 2017 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Tue May 30 17:51:48 2017 -0400

    Fix rubocop warnings.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1454936

 app/models/vm_scan.rb | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

Comment 18 Satyajit Bulage 2018-01-22 19:07:53 UTC
Able to scan VM which resides on SSA zone having SmartProxy, SmartState Analysis and Automate role enabled. Rest all roles are enabled in Default Zone.

Verified Version: 5.9.0.17.20180116225234_ac8b6f5