<div dir="ltr">Ok, thank you for your response. I'll change it and see what it gives me. I followed some template examples which I found in github. I'm just running some tests to get used to heat and its templates<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-13 10:16 GMT+02:00 Steven Hardy <span dir="ltr"><<a href="mailto:shardy@redhat.com" target="_blank">shardy@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, May 13, 2015 at 09:52:30AM +0200, ICHIBA Sara wrote:<br>
> Found some spacing errors and corrected them. Now I have other errors<br>
> popping up when i execute the heat create-stack command:<br>
><br>
> Just so you know. I'm newbie to heat , and I'm not that good with coding<br>
> but I'm trying.<br>
> [root@localhost ~(keystone_admin)]# heat stack-create lb_autoscale -f<br>
> simple.yaml -e environment.yaml<br>
> ERROR: 'unicode' object has no attribute 'get'<br>
> Traceback (most recent call last):<br>
><br>
</span>> A File<br>
<span class="">> "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line<br>
> 134, in _dispatch_and_reply<br>
</span>> A A A incoming.message))<br>
><br>
> A File<br>
<span class="">> "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line<br>
> 177, in _dispatch<br>
</span>> A A A return self._do_dispatch(endpoint, method, ctxt, args)<br>
><br>
> A File<br>
<span class="">> "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line<br>
> 123, in _do_dispatch<br>
</span>> A A A result = getattr(endpoint, method)(ctxt, **new_args)<br>
><br>
> A File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line<br>
> 69, in wrapped<br>
> A A A return func(self, ctx, *args, **kwargs)<br>
><br>
> A File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line<br>
> 645, in create_stack<br>
> A A A owner_id)<br>
><br>
> A File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line<br>
> 568, in _parse_template_and_validate_stack<br>
> A A A stack.validate()<br>
><br>
> A File "/usr/lib/python2.7/site-packages/heat/engine/stack.py", line 446,<br>
> in validate<br>
> A A A parameter_groups.validate()<br>
><br>
> A File<br>
<span class="">> "/usr/lib/python2.7/site-packages/heat/engine/parameter_groups.py", line<br>
> 49, in validate<br>
</span>> A A A parameters = group.get(PARAMETERS)<br>
<span class="">><br>
> AttributeError: 'unicode' object has no attribute 'get'<br>
<br>
</span>That error isn't super-helpful (we should look at improving it, I'll raise<br>
a bug), but AFAICS the problem is you're specifying the parameters inline<br>
in the parameter_groups definition:<br>
<br>
<a href="http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#parameter-groups-section" target="_blank">http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#parameter-groups-section</a><br>
<br>
Here's how it should look:<br>
<br>
<a href="https://github.com/openstack/heat-templates/blob/master/openshift-origin/centos65/highly-available/oso_ha.yaml#L6" target="_blank">https://github.com/openstack/heat-templates/blob/master/openshift-origin/centos65/highly-available/oso_ha.yaml#L6</a><br>
<br>
Unless you really need them, I'd reccomend just not using parameter groups<br>
for now, and getting things working with just the "parameters" section<br>
first.<br>
<br>
HTH,<br>
<br>
Steve<br>
</blockquote></div><br></div>