schema_to_parameters_and_properties fails with typed schema resources

Bug #1256191 reported by Steve Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Steve Baker

Bug Description

_generate_input is assuming dict based schema

2013-11-29 14:46:13.220 TRACE heat.openstack.common.rpc.amqp File "/home/steveb/dev/localstack/heat/heat/engine/properties.py", line 775, in _generate_input
2013-11-29 14:46:13.220 TRACE heat.openstack.common.rpc.amqp if schema[TYPE] == LIST:
2013-11-29 14:46:13.220 TRACE heat.openstack.common.rpc.amqp File "/home/steveb/dev/localstack/heat/heat/engine/properties.py", line 291, in __getitem__
2013-11-29 14:46:13.220 TRACE heat.openstack.common.rpc.amqp raise KeyError(key)
2013-11-29 14:46:13.220 TRACE heat.openstack.common.rpc.amqp KeyError: 'Type'

Changed in heat:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Steve Baker (steve-stevebaker)
milestone: none → icehouse-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/59119

Changed in heat:
status: Triaged → In Progress
Changed in heat:
milestone: icehouse-1 → icehouse-2
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Just some feedback on bug reporting.. it is really unclear what the impact of this bug is on a user of Heat. I may be experiencing it, but I can't tell at all how I might know.

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

To clarify, generating a sample template from a resource type fails for any resource that specifies its properties schema with new typed Schema objects instead of json.

The following command works as expected:
heat resource-template OS::Nova::Server

The following command will fail:
heat resource-template OS::Heat::RandomString

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

This is no longer an issue

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-2 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.