yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #27241
[Bug 1414830] [NEW] heat templates hidden parameters are not loading defaults
Public bug reported:
When you use a Heat template that has parameters with default values but
they're hidden , the defaults are not loaded. This is super annoying
because then you have to unhide them in order to not have to set them.
This is easy to repro with the Wordpress 2 Instance template in the
heat-templates repo.
In this template all the db_ stuff has default values of "admin" but
when the field is marked hidden, Horizon is not setting the default
parameter.
Example section that's broken in Horizon:
db_username:
type: string
description: The WordPress database admin account username
default: admin
hidden: true
constraints:
- length: { min: 1, max: 16 }
description: db_username must be between 1 and 16 characters
- allowed_pattern: '[a-zA-Z][a-zA-Z0-9]*'
description: >
db_username must begin with a letter and contain only alphanumeric
characters
Link to template:
https://github.com/openstack/heat-templates/blob/master/hot/F20/WordPress_2_Instances.yaml
** Affects: horizon
Importance: Undecided
Status: New
** Attachment added: "heat.png"
https://bugs.launchpad.net/bugs/1414830/+attachment/4306104/+files/heat.png
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1414830
Title:
heat templates hidden parameters are not loading defaults
Status in OpenStack Dashboard (Horizon):
New
Bug description:
When you use a Heat template that has parameters with default values
but they're hidden , the defaults are not loaded. This is super
annoying because then you have to unhide them in order to not have to
set them. This is easy to repro with the Wordpress 2 Instance template
in the heat-templates repo.
In this template all the db_ stuff has default values of "admin" but
when the field is marked hidden, Horizon is not setting the default
parameter.
Example section that's broken in Horizon:
db_username:
type: string
description: The WordPress database admin account username
default: admin
hidden: true
constraints:
- length: { min: 1, max: 16 }
description: db_username must be between 1 and 16 characters
- allowed_pattern: '[a-zA-Z][a-zA-Z0-9]*'
description: >
db_username must begin with a letter and contain only alphanumeric
characters
Link to template:
https://github.com/openstack/heat-templates/blob/master/hot/F20/WordPress_2_Instances.yaml
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1414830/+subscriptions
Follow ups
References