template validate does not work for stack resource

Bug #1467764 reported by Snow Cherry
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
New
High
Neetu Jain

Bug Description

How to reproduce the problem:
1. files list
# filename: f.yaml
heat_template_version: 2013-05-23

resources:
  s:
    type: s.yaml

# filename: s.yaml
heat_template_version: 2013-05-23

2. run template-validate
heat template-validate -f f.yaml

It will output error like:
ERROR: Could not fetch remote template "file:///private/tmp/s.yaml": Failed to retrieve template: <urlopen error [Errno 2] No such file or directory: '/private/tmp/s.yaml'>

While you can use heat stack-create to create stack:
heat stack-create -f f.yaml f

Why it's important?

You know horizon is using template-validate to validate stack and get parameters list. So if the bug not fixed, all scenario using stack resource can not be supported by horizon, even command line works.

Revision history for this message
Sergey Kraynev (skraynev) wrote :

I use devstack with Heat code from master branch and I can not reproduce this issue.

skr ~ $ heat template-validate -f f.yaml
{
  "Description": "No description",
  "Parameters": {}
}

Try to update your Heat code. May be you use old code? Which version of Heat do you have?

Angus Salkeld (asalkeld)
affects: heat → python-heatclient
Changed in python-heatclient:
status: New → Triaged
importance: Undecided → High
milestone: none → 0.7.0
Revision history for this message
Rabi Mishra (rabi) wrote :

I don't see this issue with master too.

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

Can you please install python-heatclient 0.6.0 and try again?

Changed in python-heatclient:
milestone: 0.7.0 → none
status: Triaged → Incomplete
summary: - template validate does work for stack resource
+ template validate does not work for stack resource
Revision history for this message
Neetu Jain (nutshi) wrote :

works fine with 0.6.0

Revision history for this message
Jeffrey Guan (double12gzh) wrote :

Also same issue found on heat version 0.2.8

Changed in python-heatclient:
status: Incomplete → New
Revision history for this message
Neetu Jain (nutshi) wrote :

$ heat template-validate --template-file f.yaml
{
  "Description": "No description",
  "Parameters": {}
}
$ heat --version
0.4.1

Changed in python-heatclient:
assignee: nobody → Neetu Jain (nutshi)
Revision history for this message
ashwini (mashu97) wrote :

Hi,
In my case also its working fine

ashwini@ashwini-VirtualBox:~/devstack$ heat template-validate -f f.yaml
WARNING (shell) "heat template-validate" is deprecated, please use "openstack orchestration template validate" instead
{
  "Description": "No description",
  "Parameters": {}
}

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.