nova-docker: Nova-compute does not start, ImportError: Could not import name fileutils

asked 2015-10-20 07:38:26 -0600

fhussain gravatar image

I have followed this link for creating a Docker instance in OpenStack. However when I update /etc/nova/nova.conf file to change compute_driver to novadocker.virt.docker.DockerDriver, and restart the nova-compute(n-cpu) service, it fails to start. It shows this error:

TRACE nova.virt.driver   Loading compute driver 'novadocker.virt.docker.DockerDriver' , 
Traceback (most recent call last):
TRACE nova.virt.driver   File "/opt/stack/nova/nova/virt/", line 1389, in load_compute_driver
TRACE nova.virt.driver     virtapi)
TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/", line 52, in import_object_ns
TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
TRACE nova.virt.driver   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/", line 27, in import_class
TRACE nova.virt.driver     __import__(mod_str)
TRACE nova.virt.driver   File "/opt/stack/nova-docker/novadocker/virt/docker/", line 20, in <module>
TRACE nova.virt.driver     from novadocker.virt.docker import driver
TRACE nova.virt.driver   File "/opt/stack/nova-docker/novadocker/virt/docker/", line 32, in <module>
TRACE nova.virt.driver     from oslo_utils import fileutils
TRACE nova.virt.driver    Unable to load the virtualization driver,  
TRACE nova.virt.driver   ImportError: cannot import name fileutils.

Please help me resolve the issue.


edit retag flag offensive close merge delete


@SGPJ..can you please help me in this?

fhussain gravatar imagefhussain ( 2015-10-21 02:20:24 -0600 )edit

@dbaxps..can you please help me in this?

fhussain gravatar imagefhussain ( 2015-10-21 02:21:29 -0600 )edit

Most probably you don't check out stable branch for kilo from nova-docker.git. Actually, driver itself is not built properly. I succeeded with the same task for Liberty, but FIPs of nova-docker instances are not pingable

dbaxps gravatar imagedbaxps ( 2015-10-21 02:37:17 -0600 )edit