Ask Your Question

ERROR: Error parsing template: while parsing Heat Template

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

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 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

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

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 -0600

SangeethKumar gravatar image

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 1,384 times

Last updated: Mar 02 '17