Ask Your Question
1

nova-docker issue: No module named novadocker.virt.docker

asked 2014-10-08 11:00:10 -0500

updated 2014-10-09 02:49:02 -0500

Hi guys,

I'm testing docker integration with openstack, following this guide. I have an RDO allinone machine, I'm trying adding another CentOS host (manually configured).

I'm now getting an error every time I start nova-compute service:

2014-10-08 17:43:05.046 14896 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db __new__ /usr/lib/python2.6/site-packages/nova/servicegroup/api.py:65
2014-10-08 17:43:05.102 14896 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2014-10-08 17:43:05.148 14896 DEBUG stevedore.extension [-] found extension EntryPoint.parse('file = nova.image.download.file') _load_plugins /usr/lib/python2.6/site-packages/stevedore/extension.py:156
2014-10-08 17:43:05.153 14896 DEBUG stevedore.extension [-] found extension EntryPoint.parse('file = nova.image.download.file') _load_plugins /usr/lib/python2.6/site-packages/stevedore/extension.py:156
2014-10-08 17:43:05.155 14896 INFO nova.virt.driver [-] Loading compute driver 'novadocker.virt.docker.DockerDriver'
2014-10-08 17:43:05.155 14896 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver Traceback (most recent call last):
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver   File "/usr/lib/python2.6/site-packages/nova/virt/driver.py", line 1299, in load_compute_driver
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver     virtapi)
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver   File "/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver   File "/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py", line 28, in import_class
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver     __import__(mod_str)
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver ImportError: No module named novadocker.virt.docker
2014-10-08 17:43:05.155 14896 TRACE nova.virt.driver

I think I have a correct version of docker:

[root@kvm-manager nova(keystone_admin)]# docker -v
Docker version 1.1.2, build d84a070/1.1.2

And client.py:

[root@kvm-manager /(keystone_admin)]# find . -name '*client*' | grep docker
./root/src/novadocker/novadocker/tests/virt/docker/mock_client.py
./root/src/novadocker/novadocker/tests/virt/docker/test_docker_client.py
./root/src/novadocker/novadocker/virt/docker/client.py

I checked with command help("modules") and novadocker is there.

Any help will be appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-10-09 03:02:21 -0500

Found a solution, as referenced here (although it seems another error...):

simply checkout another version of the driver:

git checkout -b pre-i18n 9045ca43b645e72751099491bf5f4f9e4bddbb91

and then run:

python setup.py install

Restarting nova compute, previously referenced errors disappeared.

edit flag offensive delete link more

Comments

1

Hello

Thanks! I had the same problem reverting to pre-i18n fixed the problem loading the driver. But now the problem is to get nova download the image from glance...

In /var/log/nova/scheduler.log: Cannot load repository file: request() got an unexpected keyword argument 'data'

Any idea? P.

patlachance gravatar imagepatlachance ( 2014-10-09 11:09:46 -0500 )edit

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: 2014-10-08 11:00:10 -0500

Seen: 1,702 times

Last updated: Oct 09 '14