[Rdo-list] [heat]error parsing template file

ICHIBA Sara ichi.sara at gmail.com
Wed May 13 07:52:30 UTC 2015

Found some spacing errors and corrected them. Now I have other errors
popping up when i execute the heat create-stack command:

Just so you know. I'm newbie to heat , and I'm not that good with coding
but I'm trying.

[root at localhost ~(keystone_admin)]# heat stack-create lb_autoscale -f
simple.yaml -e environment.yaml
ERROR: 'unicode' object has no attribute 'get'
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py",
line 134, in _dispatch_and_reply

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py",
line 177, in _dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)

  File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py",
line 123, in _do_dispatch
    result = getattr(endpoint, method)(ctxt, **new_args)

  File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line 69,
in wrapped
    return func(self, ctx, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line 645,
in create_stack

  File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line 568,
in _parse_template_and_validate_stack

  File "/usr/lib/python2.7/site-packages/heat/engine/stack.py", line 446,
in validate

  File "/usr/lib/python2.7/site-packages/heat/engine/parameter_groups.py",
line 49, in validate
    parameters = group.get(PARAMETERS)

AttributeError: 'unicode' object has no attribute 'get'

2015-05-13 9:19 GMT+02:00 ICHIBA Sara <ichi.sara at gmail.com>:

> hello people,
> I wrote a simple  template in order to scale a VM in the basis of cpu
> utilisation. When I try to execute the heat template. I got this error:
> Error parsing template file:///root/simple.yaml while parsing a block
> mapping
>   in "<unicode string>", line 38, column 3
> did not find expected key
>   in "<unicode string>", line 117, column 4
> I checked my template over and over to see if I missed a space somwhere in
> those two lines. But couldn't see anything. You can find my  template
> attached. Can you plz tell me if there's something wrong with it?
> In advance, thanks for responding,
> Sara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20150513/daad7b62/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: environment.yaml
Type: application/octet-stream
Size: 67 bytes
Desc: not available
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20150513/daad7b62/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple.yaml
Type: application/octet-stream
Size: 3569 bytes
Desc: not available
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20150513/daad7b62/attachment-0001.obj>

More information about the dev mailing list