Revision history [back]

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

Hi guys,

I'm experimenting 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.

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

Hi guys,

I'm experimenting 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.