Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1393501 - Automate Simulate - does not use input field message.
Automate Simulate - does not use input field message.
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.7.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.8.0
Assigned To: drew uhlmann
Dmitry Misharov
automate
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-09 12:01 EST by Tina Fitzgerald
Modified: 2018-06-04 08:07 EDT (History)
5 users (show)

See Also:
Fixed In Version: 5.8.0.8
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-05-31 10:39:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:1367 normal SHIPPED_LIVE Moderate: CFME 5.8.0 security, bug, and enhancement update 2017-05-31 14:16:03 EDT

  None (edit)
Description Tina Fitzgerald 2016-11-09 12:01:58 EST
Description of problem:
Simulate allows you to pass a message to Automate which is supposed to match the instance message in order to have the instance resolved. It looks like the  message is not be passed. 

Steps to Reproduce:
Navigate to Automate -> Simulate
Object Details:
System/Process  Request
Message         Fred
Request         inspectme
Submit

Check the automation.log to see that the inspectme method ran. 

Sample output:
INFO -- : <AEMethod inspectme> Root:<$evm.root> Attributes - Begin
Attribute - ae_provider_category: unknown
INFO -- : <AEMethod inspectme>   Attribute - miq_group: #<MiqAeMethodService::MiqAeServiceMiqGroup:0x007f8c28a855f0>
INFO -- : <AEMethod inspectme>   Attribute - miq_server: #<MiqAeMethodService::MiqAeServiceMiqServer:0x007f8c2884ee58>
INFO -- : <AEMethod inspectme>   Attribute - miq_server_id: 1
INFO -- : <AEMethod inspectme>   Attribute - object_name: Request
INFO -- : <AEMethod inspectme>   Attribute - request: inspectme
INFO -- : <AEMethod inspectme>   Attribute - service: #<MiqAeMethodService::MiqAeServiceService:0x007f8c28b2b6d0>
INFO -- : <AEMethod inspectme>   Attribute - service_id: 110
INFO -- : <AEMethod inspectme>   Attribute - tenant: #<MiqAeMethodService::MiqAeServiceTenant:0x007f8c28e70660>
INFO -- : <AEMethod inspectme>   Attribute - user: #<MiqAeMethodService::MiqAeServiceUser:0x007f8c28d76480>
INFO -- : <AEMethod inspectme>   Attribute - user_id: 1
INFO -- : <AEMethod inspectme>   Attribute - vmdb_object_type: service
INFO -- : <AEMethod inspectme> Root:<$evm.root> Attributes - End


Expected results:  The inspectme method should not have run since the message passed was 'fred' and the message conditioning inspectme is 'create'.
Comment 2 Tina Fitzgerald 2016-11-09 12:34:22 EST
Automation.log Instantiate log message should include message, but doesnt.

Simulate:
[----] I, [2016-11-09T11:47:19.141821 #4456:3fc61e2848fc]  INFO -- : Instantiating [/SYSTEM/PROCESS/Request?MiqServer%3A%3Amiq_server=1&Service%3A%3Aservice=110&User%3A%3Auser=1&object_name=Request&request=inspectme&vmdb_object_type=service]


Instantiate example showing message passed as object_message
[----] I, [2016-11-07T13:39:06.817591 #49663:3fd041860208]  INFO -- : Q-task_id([automation_task_312]) Instantiating [/SYSTEM/PROCESS/Request?AutomationTask%3A%3Aautomation_task=312&MiqServer%3A%3Amiq_server=1&User%3A%3Auser=1&attrs=%5B%5B%22namespace%22%2C%20%22%2Fsystem%22%5D%2C%20%5B%22class%22%2C%20%22request%22%5D%2C%20%5B%22instance%22%2C%20%22inspectme%22%5D%5D&instance_name=Request&object_message=create&object_name=Request&request=inspectme&target_class=Vm&target_id=2121&userid=admin&vmdb_object_type=automation_task]
Comment 3 drew uhlmann 2017-03-07 15:22:14 EST
https://github.com/ManageIQ/manageiq/pull/14221
Comment 5 drew uhlmann 2017-03-08 17:13:51 EST
I lied. Sorry. This one: https://github.com/ManageIQ/manageiq/pull/14237
Comment 6 Satoe Imaishi 2017-03-24 14:18:49 EDT
New PR: https://github.com/ManageIQ/manageiq-ui-classic/pull/742
Comment 7 Milan Falešník 2017-03-30 05:59:05 EDT
Verified in 5.8.0.8.

The message is correctly passed into /System/Process/ instances
Comment 9 errata-xmlrpc 2017-05-31 10:39:50 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1367

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