param type Json badness

Bug #1356011 reported by Kevin Fox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Medium
Miguel Grinberg

Bug Description

When launching a template that has a parameter with type Json, the cli works, but the Dashboard displays a random other field duplicated rather then displaying the correct parameter, and can not submit properly. Removing the Json type param causes the stack to display and submit properly. Dashboard needs to know how to handle the Json type.

Tags: heat
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Could you provide some more details about how to reproduce this? When you say "launching a template" are you referring to launching an instance from an image? Can you give the cli command that works? Is there anything specific in the json that causes it to fail?

Changed in horizon:
status: New → Incomplete
Revision history for this message
Kevin Fox (kevpn) wrote :

I'm sorry, I guess that was a big vague. I'm referring to launching a new heat stack using the orchestration section of the dashboard. If the heat template file provided has a parameter with "Type: Json", the dashboard heat ui breaks.

Changed in horizon:
status: Incomplete → New
Revision history for this message
John Davidge (john-davidge) wrote :

Can you post the heat template that's causing this error?

Revision history for this message
Kevin Fox (kevpn) wrote :

Sure. Grab any heat template from the example repo. For example this one:
https://raw.githubusercontent.com/openstack/heat-templates/master/cfn/F17/MySQL_Single_Instance.template

Pick a Parameter and change it to Json. for the example url above:
change Parameters->KeyName->Type from "String" to "Json".

I've done this and attached it.

When the dashboard displays the form, for the heat template, its wrong. In the example, I'm seeing Two "DBRootPassword" boxes and no KeyName boxes now.

I believe the dasboard would work properly if it simply would treat any field that is of Type: Json the same as Type: String.

Revision history for this message
Kevin Fox (kevpn) wrote :

Here's a screenshot of what I'm seeing.

Akihiro Motoki (amotoki)
tags: added: heat
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

This may be the same root problem as https://bugs.launchpad.net/horizon/+bug/1360495. The label is incorrectly being duplicated from the entry above. The form does recognize that it is a json field and properly performs json validation against it.

Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Changed in horizon:
assignee: nobody → Miguel Grinberg (miguelgrinberg)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.