Bug 1384160

Summary: Invoke a Custom Automation as an action in a policy does not work.
Product: Red Hat CloudForms Management Engine Reporter: Chris Pelland <cpelland>
Component: AutomateAssignee: mkanoor
Status: CLOSED CURRENTRELEASE QA Contact: Dmitry Misharov <dmisharo>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, dajohnso, dmisharo, greartes, jhardy, jocarter, mfalesni, mkanoor, obarenbo, simaishi, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.2   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.6.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1380158 Environment:
Last Closed: 2017-02-22 15:35:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Bug Depends On: 1380158    
Bug Blocks:    

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