template validate returns 500
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Thomas Herve |
Bug Description
template validation usually returns 400 or errors, but on this case it returns 500.
Tested with python-
Template:
-------
heat_template_
description: >
this should fail horribly
parameters:
public_net_id:
type: string
this is where the error is
default: error
resources:
router:
type: OS::Neutron::Router
router_gateway:
type: OS::Neutron:
properties:
router_id: { get_resource: router }
network_id: { get_param: public_net_id }
-------
DEBUG:
http://
DEBUG (http:122)
HTTP/1.1 500 Internal Server Error
date: Wed, 02 Jul 2014 10:56:45 GMT
content-length: 297
content-type: application/json; charset=UTF-8
{"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "Remote error: InvalidSchemaError Invalid type (string this is where the error is)", "traceback": null, "type": "RemoteError"}, "title": "Internal Server Error"}
Traceback (most recent call last):
File "/usr/bin/heat", line 10, in <module>
sys.
File "/usr/lib/
HeatShell(
File "/usr/lib/
args.
File "/usr/lib/
validation = hc.stacks.
File "/usr/lib/
resp, body = self.client.
File "/usr/lib/
resp = self._http_
File "/usr/lib/
raise exc.from_
heatclient.
Changed in heat: | |
importance: | Undecided → High |
assignee: | nobody → Thomas Herve (therve) |
milestone: | none → juno-2 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
tags: | added: icehouse-backport-potential |
Changed in heat: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/104189
Review: https:/