Failed to spawn nova-docker container [closed]

asked 2016-03-10 06:20:05 -0600

hkominos gravatar image

updated 2016-03-14 05:53:12 -0600

Hi all. I have a small kilo deployment (virtualbox, Fuel 7.0, 1 Controller 1 Compute) and I am trying to use nova docker. After following the instructions from https://wiki.openstack.org/wiki/Docker (and others ) I managed to get the hypervisor to be reported as docker in Horizon. However I cannot spawn containers. Because no [Error: No valid host was found. There are not enough hosts available.]. The Nova-compute log helps and it reports :

2016-03-10 11:57:15.002 7876 INFO nova.scheduler.client.report [req-5aec5432-c04f-4d86-b83c-698e4aff34bd 72504f38b29d49ed9bd409fd23f87236 09ff630178584ca6ba6d48f3a5b27404 - - -] Compute_service record updated for ('node-23.domain.tld', 'node-23.domain.tld')
2016-03-10 11:57:15.105 7876 INFO nova.scheduler.client.report [req-5aec5432-c04f-4d86-b83c-698e4aff34bd 72504f38b29d49ed9bd409fd23f87236 09ff630178584ca6ba6d48f3a5b27404 - - -] Compute_service record updated for ('node-23.domain.tld', 'node-23.domain.tld')
2016-03-10 11:57:15.305 7876 ERROR nova.compute.manager [req-5aec5432-c04f-4d86-b83c-698e4aff34bd 72504f38b29d49ed9bd409fd23f87236 09ff630178584ca6ba6d48f3a5b27404 - - -] [instance: 61d642f8-fbf0-4984-a6db-382ba1824312] Instance failed to spawn
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312] Traceback (most recent call last):
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2471, in _build_resources
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]     yield resources
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2343, in _build_and_run_instance
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]     block_device_info=block_device_info)
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]   File "/etc/apt/sources.list.d/src/novadocker/novadocker/virt/docker/driver.py", line 508, in spawn
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]     image_name = self._get_image_name(context, instance, image_meta)
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]   File "/etc/apt/sources.list.d/src/novadocker/novadocker/virt/docker/driver.py", line 371, in _get_image_name
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312]     fmt = image.container_format
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312] AttributeError: 'dict' object has no attribute 'container_format'
2016-03-10 11:57:15.305 7876 TRACE nova.compute.manager [instance: 61d642f8-fbf0-4984-a6db-382ba1824312] 
2016-03-10 11:57:15.631 7876 INFO nova.compute.manager [req-5aec5432-c04f-4d86-b83c-698e4aff34bd 72504f38b29d49ed9bd409fd23f87236 09ff630178584ca6ba6d48f3a5b27404 - - -] [instance: 61d642f8-fbf0-4984-a6db-382ba1824312] Terminating instance
2016-03-10 11:57:15.672 7876 INFO nova.scheduler.client.report [req-5aec5432-c04f-4d86-b83c-698e4aff34bd 72504f38b29d49ed9bd409fd23f87236 09ff630178584ca6ba6d48f3a5b27404 - - -] Compute_service record updated for ('node-23.domain.tld', 'node-23.domain.tld')

So I looked a bit in the python modules and this is what i Got. From what I understand Nova requests the image from glance. Glance also has to report some metadata (fe Json) which describe the image. One of these fields is 'container_format' which for some reason does not exist. If however i run glance image-show the attribute is listed correctly.

Can anybody help?

EDIT: By installing from stable/kilo and not from trunk the issue was resolved

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by hkominos
close date 2016-03-14 05:52:24.574873