HeatAction failed: ERROR: Template not in valid format: The template is not a JSON object or YAML mapping.

Bug #1605270 reported by Andy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Triaged
Low
Unassigned

Bug Description

When using heat.stacks_create stack_name=<% $.stack_name %> template="Path/Heat Template File" like /root/heatTemplate.hot.yaml to create heat stack, following error is reported:
HeatAction failed: ERROR: Template not in valid format: The template is not a JSON object or YAML mapping.
2016-07-21 22:15:13.478 1748 TRACE mistral.engine.default_executor Traceback (most recent call last):
2016-07-21 22:15:13.478 1748 TRACE mistral.engine.default_executor File "/usr/lib/python2.7/site-packages/mistral/engine/default_executor.py", line 52, in run_action
2016-07-21 22:15:13.478 1748 TRACE mistral.engine.default_executor result = action.run()
2016-07-21 22:15:13.478 1748 TRACE mistral.engine.default_executor File "/usr/lib/python2.7/site-packages/mistral/actions/openstack/actions.py", line 164, in run
2016-07-21 22:15:13.478 1748 TRACE mistral.engine.default_executor % (self.__class__.__name__, e))
2016-07-21 22:15:13.478 1748 TRACE mistral.engine.default_executor ActionException: HeatAction failed: ERROR: Template not in valid format: The template is not a JSON object or YAML mapping.
2016-07-21 22:15:13.478 1748 TRACE mistral.engine.default_executor

Does mistral heat.stacks_create not support file path?
BTW, I have used heat stack-create successlly by the same template file.

Revision history for this message
yaoyuan (yaoyuan) wrote :

same to me!

Changed in mistral:
status: New → Triaged
importance: Undecided → Low
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.