Ask Your Question
0

How can you debug a Heat Template ?

asked 2015-04-24 11:30:16 -0500

herrsergio gravatar image

The logs from Heat are not very clear in order to debug an error in a template.

2015-04-24 11:25:05.826 60087 DEBUG root [-] JSON response : {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "while parsing a block mapping", "traceback": "  in \"<byte string="">\", line 69, column 3\ndid not find expected key\n  in \"<byte string="">\", line 88, column 4\nTraceback (most recent call last):\n\n  File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 63, in wrapped\n    return func(self, ctx, *args, **kwargs)\n\n  File \"/usr/lib/python2.7/dist-packages/heat/engine/service.py\", line 524, in create_stack\n    stack.validate()\n\n  File \"/usr/lib/python2.7/dist-packages/heat/engine/parser.py\", line 364, in validate\n    six.text_type(ex)))\n\nStackValidationFailed: while parsing a block mapping\n  in \"<byte string="">\", line 69, column 3\ndid not find expected key\n  in \"<byte string="">\", line 88, column 4\n", "type": "StackValidationFailed"}, "title": "Bad Request"} to_json /usr/lib/python2.7/dist-packages/heat/common/wsgi.py:577

Which are your tips to debug a heat template ?

Thanks

edit retag flag offensive close merge delete

Comments

is this question related to https://ask.openstack.org/en/question...

smaffulli gravatar imagesmaffulli ( 2015-04-24 11:53:45 -0500 )edit

No, this is another issue.

herrsergio gravatar imageherrsergio ( 2015-04-24 12:41:50 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-24 11:52:36 -0500

smaffulli gravatar image

Check if Debugging TripleO Heat templates provides enough information for you.

edit flag offensive delete link more

Comments

Thanks for the link !

herrsergio gravatar imageherrsergio ( 2015-04-24 12:42:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-24 11:30:16 -0500

Seen: 3,095 times

Last updated: Apr 24 '15