Bug 1231939 - Automate: Should run only on servers that have the Automate Role
Summary: Automate: Should run only on servers that have the Automate Role
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.4.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: cfme-future
Assignee: mkanoor
QA Contact: Alex Newman
URL:
Whiteboard: automate:worker
Depends On:
Blocks: 1291870
TreeView+ depends on / blocked
 
Reported: 2015-06-15 16:21 UTC by mkanoor
Modified: 2018-01-30 18:39 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1291870 (view as bug list)
Environment:
Last Closed: 2017-06-07 18:46:25 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:
anewman: automate_bug-


Attachments (Terms of Use)

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.


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