Bug 1296581 - Running a Control Action of "Invoke a Custom Automation" results in the error "MiqAeServiceModelBase.ar_method raised: <RuntimeError>: <user_id not specified in Automation request>"
Summary: Running a Control Action of "Invoke a Custom Automation" results in the error...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.5.2
Assignee: Lucy Fu
QA Contact: Nandini Chandra
URL:
Whiteboard:
Depends On: 1296122
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-07 15:35 UTC by John Prause
Modified: 2019-10-10 10:50 UTC (History)
12 users (show)

Fixed In Version: 5.5.2.1
Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms Management Engine, running a control policy containing an action type that invoked a custom automation always failed with an error that the user_id was not specified in the automation request. This error was caused by missing user id, miq_group_id and tenant_id arguments in the automation request. This bug was fixed by passing the missing user_id, miq_group_id and tenant_id arguments in the automation request. Invoking a custom automation now works as expected in the new version of CloudForms Management Engine.
Clone Of: 1296122
Environment:
Last Closed: 2016-02-10 15:31:17 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0159 0 normal SHIPPED_LIVE CFME 5.5.2 bug fixes and enhancement update 2016-02-10 20:19:02 UTC

Comment 2 CFME Bot 2016-01-12 01:27:24 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=bfd53ca44b22e2433e1b29d071fede2cafd879c5

commit bfd53ca44b22e2433e1b29d071fede2cafd879c5
Merge: 7b5fed5 f944a4c
Author:     Greg McCullough <gmccullo>
AuthorDate: Mon Jan 11 20:26:18 2016 -0500
Commit:     Greg McCullough <gmccullo>
CommitDate: Mon Jan 11 20:26:18 2016 -0500

    Merge branch '5.5.z-user_id_for_custom_ae_action_1296122' into '5.5.z'
    
    user_id, miq_group_id and tenant_id are required in Automation request.
    
    A clean cherry-pick of [original](https://github.com/ManageIQ/manageiq/pull/6072).
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1296581
    
    See merge request !699

 app/models/miq_action.rb       | 21 +++++++++++++++++++++
 spec/models/miq_action_spec.rb |  8 +++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

Comment 4 Nandini Chandra 2016-01-22 17:23:59 UTC
Verified in 5.5.2.1

Comment 5 Nandini Chandra 2016-01-22 17:35:18 UTC
Verified that custom automation is successfully run when it's defined as a Control Policy action.

Comment 6 errata-xmlrpc 2016-02-10 15:31:17 UTC
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/RHBA-2016:0159


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