Provider resource Integer/Number type mismatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Steve Baker |
Bug Description
If you try to override a resource plugin which has an Integer property in it's schema with a provider resource written in HOT, it won't work because of a type mismatch:
heat --debug stack-create r2 -f random_string.yaml -e random_
...
2014-05-07 15:44:07.245 ERROR heat.engine.parser [req-f1d1250e-
2014-05-07 15:44:07.245 TRACE heat.engine.parser Traceback (most recent call last):
2014-05-07 15:44:07.245 TRACE heat.engine.parser File "/opt/stack/
2014-05-07 15:44:07.245 TRACE heat.engine.parser result = res.validate()
2014-05-07 15:44:07.245 TRACE heat.engine.parser File "/opt/stack/
2014-05-07 15:44:07.245 TRACE heat.engine.parser self._validate_
2014-05-07 15:44:07.245 TRACE heat.engine.parser File "/opt/stack/
2014-05-07 15:44:07.245 TRACE heat.engine.parser raise exception.
2014-05-07 15:44:07.245 TRACE heat.engine.parser StackValidation
$ cat random_string.yaml && echo "---" && cat random_
heat_template_
parameters:
random_length:
type: number
default: 10
resources:
random:
type: OS::Heat:
properties:
length: {get_param: random_length}
outputs:
random_length:
value: {get_param: random_length}
random_value:
value: {get_attr: [random, value]}
---
resource_registry:
OS::Heat:
$ cat random_
heat_template_
parameters:
length:
type: number
default: 10
resources:
random:
type: OS::Heat:
properties:
length: {get_param: length}
outputs:
value:
value: {get_attr: [random, value]}
Changed in heat: | |
assignee: | nobody → Yaoguo Jiang (jiangyaoguo) |
Changed in heat: | |
status: | New → Confirmed |
Changed in heat: | |
status: | Confirmed → In Progress |
Changed in heat: | |
status: | In Progress → Fix Committed |
Changed in heat: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
assignee: | Yaoguo Jiang (jiangyaoguo) → Steve Baker (steve-stevebaker) |
status: | Triaged → In Progress |
Changed in heat: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/97020
Review: https:/