Bug 1583764

Summary: [Generic Object] Action with dynamic dialog form does not instantiate Request
Product: Red Hat CloudForms Management Engine Reporter: Tsai Li Ming <ltsai>
Component: AutomateAssignee: drew uhlmann <duhlmann>
Status: CLOSED NOTABUG QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, duhlmann, ltsai, mkanoor, obarenbo, tfitzger
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-01 15:58:52 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:
Embargoed:

Description Tsai Li Ming 2018-05-29 15:43:20 UTC
Description of problem:

When using a dialog form with dynamic fields, the Action Button of the Generic Object will not Instance the instance, regardless whether the Button Type is Default or Ansible Playbook. 

Such calls will not happen:

Instantiating [/SYSTEM/PROCESS/Request?GenericObject%3A%3Ageneric_object=1000000000030&MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&job_template_name=Create%20S3%20Bucket&object_name=Request&request=ansible_tower_job&vmdb_object_type=generic_object]

Instantiating [/SYSTEM/PROCESS/GenericObject?GenericObject%3A%3Ageneric_object=1000000000030&MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&method_name=xxxx&object_name=GenericObject&request=xxxx&vmdb_object_type=generic_object]

When using a static dialog form, it works as expected

Version-Release number of selected component (if applicable):
5.9.2.4.20180501195858_35dc609

How reproducible:
Always

Steps to Reproduce:
1. Create Generic Object
2. Add Default Action Button with a dialog form that includes a dynamic field. 
3. The button shall invoke the /Process/Request/InspectMe, as an example. 

Actual results:
Nothing is called.

Expected results:
The instance shall be created. automation.log should show
Instantiating [/SYSTEM/PROCESS/Request?GenericObject%3A%3Ageneric_object=1000000000030&MiqServer%3A%3Amiq_server=1000000000001&User%3A%3Auser=1000000000001&job_template_name=Create%20S3%20Bucket&object_name=Request&request=ansible_tower_job&vmdb_object_type=generic_object]


Additional info:

Comment 2 Tina Fitzgerald 2018-05-31 13:51:42 UTC
*** Bug 1582873 has been marked as a duplicate of this bug. ***

Comment 3 drew uhlmann 2018-05-31 15:10:23 UTC
It'd be useful to have the dialog attached to this ticket, as well as any automation code running, please.

Comment 4 Tsai Li Ming 2018-06-01 15:55:41 UTC
I can't seem to reproduce this anymore on 5.9.2.4.20180501195858_35dc609. Please feel free to close this. I will reopen if I can reproduce this again.

Comment 5 drew uhlmann 2018-06-01 15:58:52 UTC
Thanks, Tsai!