malformed parameter_group fails non-obviously
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Rabi Mishra |
Bug Description
A user on rdo-list was having problems due to doing this:
heat_template_
description: Example bad syntax for parameter groups
parameter_groups:
label: configuration_data
description: configuration of the instances.
parameters:
key_name:
type: string
description: Name of keypair to assign to servers
default: userkey
image:
type: string
description: Name of image to use for servers
default: cirros
flavor:
type: string
description: Flavor to use for servers
default: m1.tiny
label: network_parameters
description: thse values are used to configure the network
parameters:
public_net_id:
type: string
description: ID of public network
default: xyz
private_net_id:
type: string
description: ID of private network
default: abc
The failure this produces is not at all obvious:
$ heat stack-create p1 -f parameter_
ERROR: 'unicode' object has no attribute 'get'
It'd be good to improve validation so this error is more meaningful, and some better documentation in the hot guide (the user guide not the hot spec which already covers this) and/or a better simple example in heat-templates (only one template currently uses parameter_groups, one of the openshift ones).
Changed in heat: | |
assignee: | nobody → Rabi Mishra (rabi) |
Changed in heat: | |
status: | In Progress → Fix Committed |
Changed in heat: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | liberty-1 → 5.0.0 |
Fix proposed to branch: master /review. openstack. org/183466
Review: https:/