Bug 1231939

Summary: Automate: Should run only on servers that have the Automate Role
Product: Red Hat CloudForms Management Engine Reporter: mkanoor
Component: AutomateAssignee: mkanoor
Status: CLOSED WONTFIX QA Contact: Alex Newman <anewman>
Severity: medium Docs Contact:
Priority: high    
Version: 5.4.0CC: bmorriso, dajo, gmccullo, jhardy, jprause, mkanoor, obarenbo, sshveta, tcarlin, tfitzger
Target Milestone: GAFlags: anewman: automate_bug-
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: automate:worker
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1291870 (view as bug list) Environment:
Last Closed: 2017-06-07 18:46: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: 1291870    

Description mkanoor 2015-06-15 16:21:28 UTC
Description of problem:
If the Automate role is not defined on a server we still see the UI and dialogs making direct Automate calls and not honoring the role. The Automate calls should get routed to the correct appliance that has the role defined instead of getting directly executed on the current appliance where the UI worker is running.


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

How reproducible:
Very

Steps to Reproduce:
1. Disable the Automate Role, (default is currently to be disabled on a new appliance)
2. Run the CFME UI
3. The UI should not be able to display the Provisioning Dialogs and other dialogs that make direct Automate calls.

Actual results:


Expected results:


Additional info:

Comment 2 CFME Bot 2015-06-29 17:26:12 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/92ba718d3c35f76bcd1afd4cc158b212fad553e8

commit 92ba718d3c35f76bcd1afd4cc158b212fad553e8
Author:     Madhu Kanoor <mkanoor>
AuthorDate: Thu Jun 18 17:39:57 2015 -0400
Commit:     Madhu Kanoor <mkanoor>
CommitDate: Wed Jun 24 11:55:42 2015 -0400

    Automate Worker
    
    Support for adding a new Automate Worker that owns the automate
    queue.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1231939

 vmdb/app/controllers/ops_controller/settings/common.rb |  16 ++++++++++++++++
 vmdb/app/models/miq_automate_worker.rb                 |  10 ++++++++++
 .../worker_management/monitor/class_names.rb           |   2 ++
 vmdb/app/views/ops/_settings_workers_tab.html.haml     |  17 +++++++++++++++++
 vmdb/config/vmdb.tmpl.yml                              |   2 ++
 vmdb/lib/workers/automate_worker.rb                    |   4 ++++
 .../icons/new/processmanager-automate_worker.png       | Bin 0 -> 6882 bytes
 7 files changed, 51 insertions(+)
 create mode 100644 vmdb/app/models/miq_automate_worker.rb
 create mode 100644 vmdb/lib/workers/automate_worker.rb
 create mode 100644 vmdb/public/images/icons/new/processmanager-automate_worker.png

Comment 5 Greg McCullough 2015-10-28 19:57:11 UTC
Moved to assigned since this work is currently deferred.

Comment 6 Chris Pelland 2017-06-07 18:46:25 UTC
This BZ has been closed since it was opened on a version of CloudForms that has reached the end of its lifecycle.  If you find that this bug is still relevant, please open a new BZ against the relevant supported version of CloudForms.