Bug 1495159

Summary: The GUI gives you a wrong error message: "Please enter a valid JSON string."
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: openstack-tripleo-uiAssignee: Jiri Tomasek <jtomasek>
Status: CLOSED ERRATA QA Contact: Julie Pichon <jpichon>
Severity: urgent Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: apannu, beth.white, jjoyce, jpichon, jrist, jschluet, jtomasek, slinaber, tvignaud
Target Milestone: betaKeywords: Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-ui-7.4.3-0.20171023133305.8616195.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:11:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Udi Kalifon 2017-09-25 11:03:46 UTC
Description of problem:
For some parameters in the parameters dialog, you can't enter the value you want because you're stopped by this error message: "Please enter a valid JSON string."


Version-Release number of selected component (if applicable):
openstack-tripleo-ui-7.4.1-0.20170911164240.16684db.el7ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Include docker.yaml in your plan configuration, and save.
2. Switch to the parameters tab and select the section of the containerized deployment parameter.
3. Try to feed in a value to the parameter DockerInsecureRegistryAddress. I tried to enter ['****.****.redhat.com']


Actual results:
You're stopped with a validation message: "Please enter a valid JSON string."

Comment 1 Jiri Tomasek 2017-10-02 12:27:06 UTC
Fixed by https://review.openstack.org/#/c/508860/

Comment 3 Julie Pichon 2017-11-07 13:27:20 UTC
Verified. Followed the steps in the bug description and was able to set and save the parameter.

1. Created a new OSP12 plan and clicked on "Edit Configuration"
2. docker.yaml was enabled by default so switched to Parameters tab -> Containerized Deployment" directly
3. Found DockerInsecureRegistryAddress and set it to ['****.****.redhat.com']. No validation error message.
4. Saved and closed the modal.
5. Parameter still set correctly when returning to the window. Also confirmed by looking at DockerInsecureRegistryAddress in plan-environment.yaml in Swift.

openstack-tripleo-ui-7.4.2-2.el7ost.noarch

Comment 7 errata-xmlrpc 2017-12-13 22:11:04 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/RHEA-2017:3462