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

ICHIBA Sara ichi.sara at gmail.com
Wed May 13 12:08:54 UTC 2015


Hello,

Finaly my stack creation failed and  I found this errors in my
heat_engine.log. If you  have any idea how to fix this. plz let me know


2015-05-13 11:58:18.764 3963 ERROR heat.engine.resource
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] DB error Not found
2015-05-13 11:58:18.785 3963 ERROR heat.engine.resource
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] DB error Not found
2015-05-13 11:58:18.822 3963 ERROR heat.engine.resource
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] DB error Not found
2015-05-13 11:58:18.839 3963 DEBUG heat.engine.scheduler
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] Task resource_action
cancelled cancel
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:236
2015-05-13 11:58:18.839 3963 DEBUG heat.engine.scheduler
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] Task resource_action
cancelled cancel
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:236
2015-05-13 11:58:18.879 3963 INFO heat.engine.environment
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] Registering
OS::Heat::ScaledResource -> AWS::EC2::Instance
2015-05-13 11:58:18.880 3963 INFO heat.engine.environment
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] Registering
OS::Nova::Server::Cirros -> file:///root/cirros.yaml
2015-05-13 11:58:18.882 3963 INFO heat.common.urlfetch
[req-16c7841f-fad0-4545-b098-3f473c1aa039 None] Fetching data from
file:///root/cirros.yaml
2015-05-13 11:58:19.764 3963 DEBUG heat.engine.scheduler [-] Task
stack_task from Stack "lb_autoscale2"
[954257c4-b515-46d0-b479-9cd3a12557f4] running step
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:210
2015-05-13 11:58:19.764 3963 DEBUG heat.engine.scheduler [-] Task
resource_action running step
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:210
2015-05-13 11:58:19.764 3963 DEBUG heat.engine.scheduler [-] Task
stack_task from Stack "lb_autoscale2-group-gfujfyotohpr"
[dc1fb2f2-703b-4cb8-a047-970702eb80d0] running step
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:210
2015-05-13 11:58:19.765 3963 DEBUG heat.engine.scheduler [-] Task
resource_action running step
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:210
2015-05-13 11:58:19.765 3963 DEBUG heat.engine.scheduler [-] Task
stack_task from Stack
"lb_autoscale2-group-gfujfyotohpr-tc3jq2xezgmk-ea3acb2t3hrc"
[43b03d83-8206-4838-8009-644826ddcd4f] running step
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:210
2015-05-13 11:58:19.765 3963 DEBUG heat.engine.scheduler [-] Task
resource_action running step
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:210
2015-05-13 11:58:19.767 3963 INFO urllib3.connectionpool [-] Starting new
HTTP connection (1): 192.168.5.33
2015-05-13 11:58:19.951 3963 DEBUG urllib3.connectionpool [-] "GET
/v2/fac261cd98974411a9b2e977cd9ec876/servers/b1fb541d-7d01-495e-b595-18428eca2a80
HTTP/1.1" 200 1581 _make_request
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:357





2015-05-13 12:54:54.064 3963 TRACE heat.engine.resource BadRequest:
Expecting to find username or userId in passwordCredentials - the server
could not comply with the request since it is either malformed or otherwise
incorrect. The client is assumed to be in error. (HTTP 400)
2015-05-13 12:54:54.064 3963 TRACE heat.engine.resource
2015-05-13 12:54:54.171 3963 DEBUG heat.engine.scheduler [-] Task
resource_action cancelled cancel
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:236
2015-05-13 12:54:54.181 3963 INFO heat.engine.stack [-] Stack CREATE FAILED
(lb_autoscale2-group-gfujfyotohpr-tc3jq2xezgmk-ea3acb2t3hrc): Resource
CREATE failed: BadRequest: Expecting to find username or userId in
passwordCredentials - the server could not comply with the request since it
is either malformed or otherwise incorrect. The client is assumed to be in
error. (HTTP 400)
2015-05-13 12:54:54.181 3963 DEBUG heat.engine.scheduler [-] Task
stack_task from Stack
"lb_autoscale2-group-gfujfyotohpr-tc3jq2xezgmk-ea3acb2t3hrc"
[43b03d83-8206-4838-8009-644826ddcd4f] complete step
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:216
2015-05-13 12:54:54.182 3963 INFO heat.engine.resource [-] CREATE:
TemplateResource "tc3jq2xezgmk" [43b03d83-8206-4838-8009-644826ddcd4f]
Stack "lb_autoscale2-group-gfujfyotohpr"
[dc1fb2f2-703b-4cb8-a047-970702eb80d0]
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource Traceback (most
recent call last):
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource   File
"/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 439, in
_action_recorder
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource     yield
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource   File
"/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 509, in
_do_action
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource     yield
self.action_handler_task(action, args=handler_args)
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource   File
"/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 303, in
wrapper
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource     step =
next(subtask)
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource   File
"/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 483, in
action_handler_task
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource     while not
check(handler_data):
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource   File
"/usr/lib/python2.7/site-packages/heat/engine/stack_resource.py", line 223,
in check_create_complete
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource     raise
exception.Error(self._nested.status_reason)
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource Error: Resource
CREATE failed: BadRequest: Expecting to find username or userId in
passwordCredentials - the server could not comply with the request since it
is either malformed or otherwise incorrect. The client is assumed to be in
error. (HTTP 400)
2015-05-13 12:54:54.182 3963 TRACE heat.engine.resource
2015-05-13 12:54:54.205 3963 DEBUG heat.engine.scheduler [-] Task
resource_action cancelled cancel
/usr/lib/python2.7/site-packages/heat/engine/scheduler.py:236


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

> I have an other issue with heat. Now that the template is being parsed
> successfully. The creation is never complete and heat doesn't report any
> error. I noticed in the dashboard that heat created two of each ressource
> spaned at the same time. One is creation_complete and the other is in
> progress.
>
> The heat_engine.log is just so huge as a enabled the debug mode. But i
> can't see any relevant information out there
>
> 2015-05-13 10:51 GMT+02:00 ICHIBA Sara <ichi.sara at gmail.com>:
>
>> Oh, sorry again. It's not even on github. I was mistaken. Probably I
>> confused the github repo with this tuto
>> <http://myopensourcelife.com/2014/09/13/autoscaling-in-openstack-using-heat-and-ceilometer-part-1/>
>> as I was looking at both. Anyway, I took the parameter_groups from it not
>> from github. Next time i'll pay more attention to what I say.
>>
>> You were right, once I removed the parameter_groups and corrected some
>> parameters. My template was parsed correctly without errors.
>>
>> 2015-05-13 10:31 GMT+02:00 Steven Hardy <shardy at redhat.com>:
>>
>>> On Wed, May 13, 2015 at 10:20:30AM +0200, ICHIBA Sara wrote:
>>> >    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
>>>
>>> Where on github?  If it's an official repo we should fix it.
>>>
>>> I've raised an upstream bug[1] so we can improve the error message, and
>>> possibly the user-guide documentation[2] and official heat example
>>> templates[3]
>>>
>>> Parameter groups are documented in the HOT spec[4], but it seems like we
>>> can improve things elsewhere.
>>>
>>> [1] https://bugs.launchpad.net/heat/+bug/1454559
>>> [2]
>>> http://docs.openstack.org/user-guide/enduser/hot-guide/hot_hello_world.html#input-parameters
>>> [3] https://github.com/openstack/heat-templates
>>> [4]
>>> http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#parameter-groups-section
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rdo-list/attachments/20150513/0af041e8/attachment.htm>


More information about the rdo-list mailing list