Bug 1594426

Summary: The specify host values textbox is limited to 50 characters
Product: Red Hat CloudForms Management Engine Reporter: Brant Evans <brant.evans>
Component: UI - OPSAssignee: lgalis
Status: CLOSED CURRENTRELEASE QA Contact: Satyajit Bulage <sbulage>
Severity: urgent Docs Contact:
Priority: high    
Version: 5.9.0CC: akarol, cpelland, hkataria, lavenel, mpovolny, obarenbo, simaishi, wfitzger
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1594831 (view as bug list) Environment:
Last Closed: 2019-02-11 14:09:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Ansible Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1594831    

Description Brant Evans 2018-06-22 21:48:29 UTC
Description of problem:
Strings longer than 50 characters cannot be entered into the "Specify host values" text box on an Embedded Ansible playbook method. This is a problem for the substitutions that are needed to set the IP address of the VM being provisioned.

For example the substitution string:
    ${/#service_template_provision_task.destination.vms.first.ipaddresses.first}

will get the IP address of a Orchestration Template service that is being ordered, but it is longer than 50 characters so it cannot be used.

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

How reproducible:
Always

Steps to Reproduce:
1. Enable the Embedded Ansible provider and add a repository with a playbook
2. Navigate to Automation -> Automate -> Explorer
3. Create a Method of type playbook
4. Click the "Specify host values" checkbox for the Host
5. Attempt to enter more than 50 characters.

Actual results:
Only the first 50 characters can be entered

Expected results:
All necessary characters can be entered. The sample string is 70 characters

Additional info:
This field should be like the "Default value" text box for Input Parameters. There doesn't appear to be a limit on this field (I've been able to add over 150000 characters to it. It would be nice if the box was also wider and resizable or maybe a text area box so the string can be seen.

The "Default value" text box for Input Parameters takes a long string I'm not sure how long, but

Comment 5 Richard Vsiansky 2018-08-28 12:19:41 UTC
*** Bug 1543581 has been marked as a duplicate of this bug. ***

Comment 7 Satyajit Bulage 2018-11-12 19:59:37 UTC
Able to add 50 characters in the hostname field.

Verified Version: 5.10.0.23.20181106165157_92dd189