Ask Your Question
2

Heat stack create failed

asked 2015-10-07 09:00:10 -0500

jrichards99 gravatar image

updated 2015-10-07 14:06:42 -0500

Trying to stand up a cloud using tripleO on CentOS 7 with libvirt+kvm virtual machines. Following along the tripleO documentation just to get something stood up for learning purposes, so using all the default options. Seems I am almost there. The overcloud deploy does not complete successfully:

[stack@instack ~]$ openstack overcloud deploy --templates
Deploying templates in the directory /usr/share/openstack-tripleo-heat-templates
Stack failed with status: Resource CREATE failed: resources.ComputePuppetDeployment: resources.ComputeNodesPostDeployment.Error: resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 1
Heat Stack create failed.
[stack@instack ~]$ nova list
+--------------------------------------+-------------------------+--------+------------+-------------+--------------------+
| ID                                   | Name                    | Status | Task State | Power State | Networks           |
+--------------------------------------+-------------------------+--------+------------+-------------+--------------------+
| e7d6a686-200a-4e44-8c30-da4678009e17 | overcloud-controller-0  | ACTIVE | -          | Running     | ctlplane=192.0.2.9 |
| 07a70b9c-83ad-49b6-ba1d-c858ddeea7e7 | overcloud-novacompute-0 | ACTIVE | -          | Running     | ctlplane=192.0.2.8 |
+--------------------------------------+-------------------------+--------+------------+-------------+--------------------+
[stack@instack ~]$ heat stack-list
+--------------------------------------+------------+---------------+---------------------+---------------------+
| id                                   | stack_name | stack_status  | creation_time       | updated_time        |
+--------------------------------------+------------+---------------+---------------------+---------------------+
| 285d7d66-d15b-4dd2-ac7b-c4e0db0d6ef5 | overcloud  | UPDATE_FAILED | 2015-10-06T17:32:05 | 2015-10-06T18:18:59 |
+--------------------------------------+------------+---------------+---------------------+---------------------+

Here is a piece of the heat-engine.log:

2015-10-06 17:41:37.664 22052 ERROR heat.engine.resources.openstack.heat.software_deployment [-] Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 1
2015-10-06 17:41:37.664 22052 INFO heat.engine.resource [-] CREATE: StructuredDeployment "0" [55e4574d-d8d2-48d0-ae6f-0fa42ba92e1a] Stack "overcloud-ComputeNodesPostDeployment-a3ulpbr3lhra-ComputePuppetDeployment-g56x63ubizqh" [c3d3ff24-c09e-49de-9efe-1b8c2e175dfc]
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource Traceback (most recent call last):
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 612, in _action_recorder
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource     yield
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 682, in _do_action
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource     yield self.action_handler_task(action, args=handler_args)
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 309, in wrapper
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource     step = next(subtask)
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 656, in action_handler_task
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource     while not check(handler_data):
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/openstack/heat/software_deployment.py", line 443, in check_create_complete
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource     return self._check_complete()
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/openstack/heat/software_deployment.py", line 293, in _check_complete
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource     raise exc
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource Error: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 1
2015-10-06 17:41:37.664 22052 ERROR heat.engine.resource

Any tips on where I can start debugging this issue or proceed from here? Is the non-zero status code actually coming from the overcloud machines somewhere and I need to dig there?

Edit ... (more)

edit retag flag offensive close merge delete

Comments

I'm seeing a similar error in the OSP7 from Redhat - where I see the error is basically in the same way, except the missing Puppet class is tripleo::packages, not found anywhere in the modulepath. I have yet to figure out how to solve this.

jidar gravatar imagejidar ( 2015-10-17 12:29:57 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-01-12 05:08:05 -0500

shardy gravatar image

Check out

http://docs.openstack.org/developer/t...

and

http://hardysteven.blogspot.co.uk/201...

In this case, it appears puppet failed to apply via an OS::Heat::SoftwareDeployment resource, so the steps to debug are:

  1. heat resource-list -n5 overcloud | grep FAILED | grep "SoftwareDeployment "
  2. Take the ID of the failed deployment and do heat deployment-show <id>

This should show you the stderr from puppet, and provide more clues why things failed. Work is currently underway to expose this sort of debug data more automatically via tripleoclient.

The root cause of this is often mismatched images/templates, e.g if you run the same images in glance for a while, eventually a change will be made in tripleo-heat-templates which requires e.g newer puppet modules in the image, so you'll have to rebuild the images and update them in glance. Check out tripleo-docs for info on this:

http://docs.openstack.org/developer/t...

You can pass --update-existing to openstack overcloud image upload to update the existing images in glance.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-10-07 09:00:10 -0500

Seen: 5,884 times

Last updated: Jan 12 '16