Error during pass 0 parameter to resource_group
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Sergey Kraynev |
Bug Description
I try to create follow template:
heat_template_
parameters:
instance_type:
type: string
description: Type of the instance to be created.
default: m1.heat
location:
type: string
default: http://
disk:
type: number
default: 0
resources:
group_of_volumes:
type: OS::Heat:
properties:
count: 1
resource_def:
type: nested_stack.yaml
properties:
disk: {get_param: disk}
location: {get_param: location}
Where nested_stack.yaml:
heat_template_
parameters:
disk:
type: number
d_format:
type: string
default: qcow2
c_format:
type: string
default: bare
location:
type: string
instance_type:
type: string
resources:
image:
type: OS::Glance::Image
properties:
min_disk: {get_param: disk}
disk_format: {get_param: d_format}
container
location: {get_param: location}
instance:
type: OS::Nova::Server
properties:
image: {get_resource: image}
flavor: {get_param: instance_type}
If I use default value of disk (i.e. 0), it produce error:
skr ~ $ heat event-list demos
+------
| resource_name | id | resource_
+------
| group_of_volumes | e86c6c4b-
| group_of_volumes | 39729043-
+------
Same template works with disk equals any other not 0 value.
I suppose, that it should works for cases when parameter equal 0, [] or {}, because in some situations user want
apparently specify empty value or not limiting in case of flavor size as example.
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in heat: | |
assignee: | Sergey Kraynev (skraynev) → Angus Salkeld (asalkeld) |
Changed in heat: | |
assignee: | Angus Salkeld (asalkeld) → Sergey Kraynev (skraynev) |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-3 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/159059
Review: https:/