[Heat] Initial values aren't displaying properly in "Launch Stack" form

Bug #1438138 reported by Tatiana Ovchinnikova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Tatiana Ovchinnikova

Bug Description

Using json type default data in a template causes annoying inconsistencies in the second step of creating a stack. For example for this template:

heat_template_version: 2013-05-23
parameters:
  key:
    type: string
    default: key
    description: This is keypair to access into your stack.
  db_password:
    type: string
    default: secrete
    hidden: true
  metadata:
    type: json
    default: {"keyvalue": 5}

on the second step there would be "metadata" field with initial value {u'keyvalue': 5}. That is not valid JSON, and pressing "Launch" button would show: "Expecting property name enclosed in double quotes".

Changed in horizon:
assignee: nobody → Tatiana Ovchinnikova (tmazur)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/168850

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/168850
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=eeba3b4b57b041fef73f85e9c6eb63e333980590
Submitter: Jenkins
Branch: master

commit eeba3b4b57b041fef73f85e9c6eb63e333980590
Author: Tatiana Ovchinnikova <email address hidden>
Date: Mon Mar 30 13:30:17 2015 +0300

    [Heat] Fix default values displaying for "Launch Stack"

    This patch set fixes default values displaying for JSON parameters
    to make it possible to use them without any changes.

    Closes-Bug: #1438138

    Change-Id: Ib925dc39320f7cab240eed3ccbcf1fa574bc5507

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → kilo-rc1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-rc1 → 2015.1.0
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.