Bug 1713419

Summary: After upgrade the dynamically popullated "text area" fields pass null to ansible tower templates.
Product: Red Hat CloudForms Management Engine Reporter: Raul Mahiques <rmahique>
Component: AutomateAssignee: Lucy Fu <lufu>
Status: CLOSED CURRENTRELEASE QA Contact: Shveta <sshveta>
Severity: urgent Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: urgent    
Version: 5.10.3CC: bmidwood, dmetzger, gmccullo, jhenner, lavenel, lufu, mkanoor, nansari, obarenbo, rchincho, simaishi, sshveta, tfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1717500 (view as bug list) Environment:
Last Closed: 2019-12-13 15:01:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1717500    
Attachments:
Description Flags
No parameters
none
In CFME parameters
none
Ansible parameters
none
Parameters shown in CFME
none
Text area param not shown in Ansible none

Description Raul Mahiques 2019-05-23 15:35:36 UTC
Description of problem:
After upgrade the dynamically popullated "text area" fields pass null to ansible tower templates. Before the upgrade it was working fine.

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

How reproducible:
Always.

Steps to Reproduce:
1.Upgrade from 5.10.x to 5.10.3
2.Trigger a service via a service dialog that has at least a "text area" field dynamically populated.
3.You can observe in tower that the variables from the 'text area' fields are set to 'null', on the previous versions it was getting the correct values

Actual results:
The variable value is null

Expected results:
The variable value contains the right data, as it was happening before the upgrade.

Additional info:
This breaks the service service dialog.

Comment 5 Tina Fitzgerald 2019-06-04 17:25:30 UTC
Hi Rahul,

Can you let us know if the hotfix referenced in comment 4 resolves your issue?

Thanks,
Tina

Comment 8 Jaroslav Henner 2019-06-06 13:16:02 UTC
Is the update really required step to reproduce? In other words does this work on 5.10.3 without the update?

Comment 9 Jaroslav Henner 2019-06-06 13:20:09 UTC
In the comment https://bugzilla.redhat.com/show_bug.cgi?id=1717500#c3 Satoe says this is most likely not an update related issue. Reseting the QA Contact then as this is not mine.

@Sudhir I believe this is a Automate related issue.

Comment 10 Shveta 2019-08-13 21:41:55 UTC
Created attachment 1603555 [details]
No parameters

Hi Tina , 

The dynamic parameters passed are shown in CFME request page .
However on towers side I don't see them.I have set "prompt on launch" for limit 
and provided the CFME IP in limit as you can see in attached screenshot .

Appliance : https://10.8.196.228
Please check once.

Thanks, 
Shveta

Comment 11 Shveta 2019-08-14 15:41:25 UTC
Created attachment 1603799 [details]
In CFME parameters

Comment 12 Shveta 2019-08-14 15:42:47 UTC
Created attachment 1603801 [details]
Ansible parameters

Ansible parameters do not show dynamic variables passed from UI .
CFME request page shows.
Please check request 16 (shveta_service) at https://10.8.196.228

Comment 13 Tina Fitzgerald 2019-08-14 19:40:29 UTC
Hi Lucy,

Can you check out the reproducer?

Thanks,
Tina

Comment 14 Lucy Fu 2019-08-14 20:42:17 UTC
The dialog variables for AnsibleTower parameters should be prefixed with "param_".
Please add the "param_" prefix to the dynamic fields and report back.
Thanks.

Comment 15 Shveta 2019-08-14 21:53:23 UTC
Hi Lucy , 

All the dialog fields have param_ in them .

Thanks, 
Shveta

Comment 16 Lucy Fu 2019-08-14 23:20:22 UTC
Shveta,

I added the prefix to the dialogs and ordered the service. 
The messages from evm.log showed those dialog options have been sent to Ansible Tower. Can you verify from Ansible Tower jobs?
Thanks.

Comment 17 Shveta 2019-08-15 20:23:48 UTC
Created attachment 1604188 [details]
Parameters shown in CFME

Comment 18 Shveta 2019-08-15 20:25:12 UTC
Created attachment 1604189 [details]
Text area param not shown in Ansible

Hi Lucy , 
Please check the screenshot , ansible tower job does not show the text area parameter which CFME request page is showing.

Comment 19 Shveta 2019-08-15 20:26:19 UTC
Well, actually it is showing at the bottom.
Verifying the BZ .
Thanks for help.