Bug 1717500

Summary: After upgrade the dynamically popullated "text area" fields pass null to ansible tower templates.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: urgent Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: urgent    
Version: 5.10.3CC: bmidwood, dmetzger, gmccullo, lavenel, mkanoor, obarenbo, rchincho, simaishi, smallamp, sshveta, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.10.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.5.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1713419 Environment:
Last Closed: 2019-06-11 05:32:57 UTC Type: ---
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:
Bug Depends On: 1713419    
Bug Blocks:    
Attachments:
Description Flags
In CFME
none
In ansible tower none

Comment 2 Jaroslav Henner 2019-06-06 12:55:10 UTC
Is the update really required step to reproduce? In other words does this work on 5.10.3 without the update?

Comment 3 Satoe Imaishi 2019-06-06 12:58:53 UTC
As far as I know, this is NOT update related, just something we broke in 5.10.3

Comment 4 Shveta 2019-06-06 18:27:20 UTC
Hi Tina , 
I tried to recreate this BZ on https://10.8.199.40/.
Created a dynamic dialog with textarea (shveta_survey)
On ordering service catalog the parameter passed in text area does not show in ansible tower.
Please check the appliance once .

Comment 5 Tina Fitzgerald 2019-06-06 18:44:23 UTC
Hi Shveta,

The dialog is working properly. If you look at the service -> requests page, and select a request, you'll see the dialog values are present, The dialog values were missing when this issue was initially reported.


It looks like the error is caused "PROMPT ON LAUNCH" not being set as shown below:


r/share/ruby/drb/drb.rb:1664:in `block in main_loop'
[----] E, [2019-06-06T14:38:56.120760 #18784:a8a2528] ERROR -- : Q-task_id([r4_service_template_provision_task_4]) <AEMethod provision> Template shveta-survey launching failed. Reason: 'PROMPT ON LAUNCH' is required for the following fields: limit (MiqException::MiqOrchestrationProvisionError)
[----] I, [2019-06-06T14:38:56.177173 #18784:622f50]  INFO -- : Q-task_id([r4_service_template_provision_task_4]) <AEMethod [/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision/provision]> Endin

Let me know if you have any questions.

Thanks,
Tina

Comment 6 Shveta 2019-06-06 19:18:48 UTC
I can see the parameters passed in service request page .
Thanks.
Do I also need to Verify it from ansible tower UI ?
I don't see it in Ansible tower job playbook .

Comment 7 Tina Fitzgerald 2019-06-06 20:06:37 UTC
Hi Shveta,

As we discussed, the prompt on launch checkbox needed to be set for the limit setting.
Also, the limit field needs to contain an ip address of a machine in the inventory.
The service provisioned successfully once we fixed those 2 settings.

Let me know if you have any questions.

Thanks,
Tina

Comment 8 Shveta 2019-06-06 20:07:12 UTC
Created attachment 1578079 [details]
In CFME

Comment 9 Shveta 2019-06-06 20:08:06 UTC
Created attachment 1578080 [details]
In ansible tower

Parameters are passed.
Verified in 5.10.5.1.20190528153822_0501085

Comment 11 errata-xmlrpc 2019-06-11 05:32:57 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/RHSA-2019:1429