Bug 1384160 - Invoke a Custom Automation as an action in a policy does not work.
Summary: Invoke a Custom Automation as an action in a policy does not work.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.6.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.6.2
Assignee: mkanoor
QA Contact: Dmitry Misharov
URL:
Whiteboard:
Depends On: 1380158
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-12 17:08 UTC by Chris Pelland
Modified: 2019-12-16 07:05 UTC (History)
11 users (show)

Fixed In Version: 5.6.2.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1380158
Environment:
Last Closed: 2017-02-22 15:35:40 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:


Attachments (Terms of Use)

Comment 1 mkanoor 2016-12-20 17:50:39 UTC
Fixed in PR https://github.com/ManageIQ/manageiq/pull/10445

Comment 3 Dmitry Misharov 2017-02-22 15:35:40 UTC
Verified in 5.6.4.0.20170201130751_9521533.
Verification steps:
1. Create two methods in Automate/Explorer. One of them should contain sleep(30).
2. Create a service dialog in Automate/Customization. That dialog should contain two dynamic fields. An entry point for each field should refer to respective methods, which were created before. "Show Refresh Button" should be checked.
3. Create a custom button for a host or a vm in Automate/Customization. Choose dialog which was created in step 2.
4. Click that button in the host or vm screen to call service dialog.
5. Open the same custom service dialog in another browser or tab.
6. Click Refresh button in each window with the service dialog.
In automation.log these two methods, which were created in step 1, executed in the separate threads and second one finished before the first one.
[----] I, [2017-02-22T10:20:00.933966 #3007:15dbc44]  INFO -- : <AEMethod [/Test/System/Request/InspectMe1]> Starting
[----] I, [2017-02-22T10:20:04.813317 #3007:15db578]  INFO -- : <AEMethod [/Test/System/Request/InspectMe2]> Starting
[----] I, [2017-02-22T10:20:05.333275 #3007:15db578]  INFO -- : <AEMethod [/Test/System/Request/InspectMe2]> Ending
[----] I, [2017-02-22T10:20:31.792870 #3007:15dbc44]  INFO -- : <AEMethod [/Test/System/Request/InspectMe1]> Ending


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