Ask Your Question

ERROR: Error parsing template: while parsing Heat Template

asked 2017-02-28 07:28:21 -0500

SyCode7 gravatar image

I keep on having this error below whilw trying to test the web application template described in the [OpenStack Workload Reference Architecture: Web Applications] (

ERROR: Error parsing template: while parsing a block mapping
in "<unicode string>", line 16, column 3:
expected <block end>, but found '<block mapping start>'
 in "<unicode string>", line 22, column 4:
 default:  a978818b-c2fa-424d-b26 ...

I have tried to correct it without any progress, is there some standard way for resolving this ?

edit retag flag offensive close merge delete


Probably bad indentation, or perhaps a tab character. YAML is very sensitive regarding these things.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-28 09:02:42 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2017-02-28 10:34:36 -0500

zaneb gravatar image

The line

default:  a978818b-c2fa-424d-b26 ...

does not appear in the original template, so I assume you added it. The error message from yaml indicates that you didn't indent it by the same amount as the other keys inside public_network_id - 3 spaces instead of 4.

edit flag offensive delete link more

answered 2017-03-02 01:42:56 -0500

SangeethKumar gravatar image

updated 2017-03-02 01:47:02 -0500

It seems like Bad indentation error. Can you paste the input section of your YAML alone here ?

Usually YAML expects two spaces between each new blocks

edit flag offensive delete link more

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


Asked: 2017-02-28 07:28:21 -0500

Seen: 779 times

Last updated: Mar 02 '17