heat-cfn validate fails for yaml templates

Bug #1131290 reported by Steven Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Steven Hardy

Bug Description

[root@heatlt heat]# heat-cfn validate --template-file=templates/WordPress_Single_Instance.yaml
Failed to load keyring modules.
ERROR:Failed to validate. Got error:
ERROR:Data supplied was not valid: <ErrorResponse><Error><Message>A bad or out-of-range value was supplied:The Template must be a JSON document.</Message><Code>InvalidParameterValue</Code><Type>Sender</Type></Error></ErrorResponse>

template_format.parse is not being called in validate_template (heat/api/cfn/v1/stacks.py)

Steven Hardy (shardy)
Changed in heat:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Steven Hardy (shardy)
milestone: none → grizzly-rc1
status: Triaged → In Progress
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/22573

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/22573
Committed: http://github.com/openstack/heat/commit/a2911cebd6e9c66a64ad95c4b7351a5f5002d640
Submitter: Jenkins
Branch: master

commit a2911cebd6e9c66a64ad95c4b7351a5f5002d640
Author: Steven Hardy <email address hidden>
Date: Thu Feb 21 17:29:21 2013 +0000

    heat api : allow validation of YAML templates via cfn api

    Currently validation only works if the template is json

    fixes bug 1131290

    Change-Id: Ia08ba7cc18908697b5fdfc1eb711d84d7b39c7cb

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: grizzly-rc1 → 2013.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.