Parameter JSONParam doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Mitsuru Kanabuchi |
Bug Description
I tried to use JSONParam as a parameter.
But the following error occured.
I think conversion of string to map is need at properties.
Template file:
$ cat vm-json.template
{
"AWSTemplateF
"Parameters" : {
"prm_imageid" : {
"Type" : "String"
},
"prm_metadata" : {
"Type" : "Json"
}
},
"Resources" : {
"instance": {
"Type": "OS::Nova::Server",
"Properties": {
"image" : { "Ref" : "prm_imageid" },
"flavor" : "m1.tiny",
"metadata": { "Ref" : "prm_metadata" }
}
}
}
}
Console:
$ heat stack-create -f vm-json.template -P 'prm_imageid=
ERROR: Property error : instance: metadata "{"aaa"
Log:
2013-12-02 20:25:09.108 ERROR heat.engine.parser [req-678c1a84-
2013-12-02 20:25:09.108 TRACE heat.engine.parser Traceback (most recent call last):
2013-12-02 20:25:09.108 TRACE heat.engine.parser File "/opt/stack/
2013-12-02 20:25:09.108 TRACE heat.engine.parser result = res.validate()
2013-12-02 20:25:09.108 TRACE heat.engine.parser File "/opt/stack/
2013-12-02 20:25:09.108 TRACE heat.engine.parser super(Server, self).validate()
2013-12-02 20:25:09.108 TRACE heat.engine.parser File "/opt/stack/
2013-12-02 20:25:09.108 TRACE heat.engine.parser return self.properties
2013-12-02 20:25:09.108 TRACE heat.engine.parser File "/opt/stack/
2013-12-02 20:25:09.108 TRACE heat.engine.parser raise exception.
2013-12-02 20:25:09.108 TRACE heat.engine.parser StackValidation
2013-12-02 20:25:09.108 TRACE heat.engine.parser
2013-12-02 20:25:09.142 ERROR heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
2013-12-02 20:25:09.142 TRACE heat.openstack.
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → icehouse-2 |
Changed in heat: | |
assignee: | nobody → Mitsuru Kanabuchi (kanabuchi) |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-2 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/59618
Review: https:/