You're right. I was mistaken. I picked the wrong file. I corrected some spacing errors but I still have these ones:

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
    incoming.message))

  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
    owner_id)

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

  File "/usr/lib/python2.7/site-packages/heat/engine/stack.py", line 446, in validate
    parameter_groups.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'


By the way, thank you for the advice. I'll try to find a suitable parser.


2015-05-13 10:06 GMT+02:00 Steven Hardy <shardy@redhat.com>:
On Wed, May 13, 2015 at 09:19:56AM +0200, ICHIBA Sara wrote:
>    hello people,
>
>    I wrote a simpleA  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
>    A  in "<unicode string>", line 38, column 3
>    did not find expected key
>    A  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 myA  template
>    attached. Can you plz tell me if there's something wrong with it?

I think you need to attach/paste simple.yaml where the error is coming from.

The files you attached appear unrelated (to each other and the error
AFAICT).

You may find it useful pasting your template into one of the online yaml
parsers, sometimes this helps you spot the error in your syntax if the heat
error doesn't make it obvious.

Steve