nova-docker failed to start instance [closed]

asked 2016-11-24 06:23:30 -0600

Pix gravatar image

Hi

I am currently evaluating adding nova-docker to the OpenStack deployment of my organisation and hit a roadblock.

I followed the instructions on https://github.com/openstack/nova-docker for installation. I installed the docker driver on one of 3 compute nodes. When I try and start a nginx docker image it failes to start. This is an excerpt from the logfile of that compute node.

2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [req-e85a50db-74ce-4d13-91af-cf89c6b762c5 b1104abcb4ab48ee85fdb5360066fa54 7f48e63b077c45fa912758d4090a8472 - - -] [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24] Instance failed to spawn
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24] Traceback (most recent call last):
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2218, in _build_resources
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     yield resources
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     block_device_info=block_device_info)
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2779, in spawn
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     block_device_info=block_device_info)
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4923, in _create_domain_and_network
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     xml, pause=pause, power_on=power_on)
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4849, in _create_domain
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     guest = libvirt_guest.Guest.create(xml, self._host)
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/guest.py", line 127, in create
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     encodeutils.safe_decode(xml))
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     self.force_reraise()
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     six.reraise(self.type_, self.value, self.tb)
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/guest.py", line 123, in create
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]     domain = host.write_instance_config(xml)
2016-11-24 13:04:11.997 3125 ERROR nova.compute.manager [instance: 56ebea27-b929-4981-b272-d8dc65ffcc24]   File "/usr/lib/python2.7/dist-packages/nova ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Pix
close date 2016-11-25 06:06:36.237473

Comments

Which type of tenant's segregation are you using ?

dbaxps gravatar imagedbaxps ( 2016-11-25 03:31:39 -0600 )edit

Please post nova.conf on Compute nodes ?

dbaxps gravatar imagedbaxps ( 2016-11-25 03:33:03 -0600 )edit

What openstack version are you using. nova-docker driver is not longer maintained by the community. Last active version is Mitaka. Even if the version is valid to your actual deployment, i wouldn't use in production if you plan to upgrade to newer version.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-11-25 04:04:01 -0600 )edit

@Eduardo Gonzales if nova-docker is no longer maintained Is there an alternative? If there is no version/alternative that is production ready then this question is moot.

Pix gravatar imagePix ( 2016-11-25 04:11:09 -0600 )edit

The project itself is not retired, but the last commit is from May. Really I think it won't work in latest versions. As a replacement, but with a different idea of not having docker daemon in host I would use Magnum or Zun (this is under development now)

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-11-25 04:43:28 -0600 )edit