ImportError: No module named novadocker.virt.docker.driver

Bug #1586950 reported by caowei on 2016-05-30
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Undecided
caowei

Bug Description

/usr/local/bin/nova-compute --config-file /etc/nova /nova.conf & echo $! >/opt/stack/status/stack/n-cpu.pid; fg || echo "n-cpu faile d to start" | tee "/opt/stack/status/stack/n-cpu.failure"
[1] 61162
/usr/local/bin/nova-compute --config-file /etc/nova/nova.conf
2016-05-30 00:12:07.120 ^[[01;33mWARNING oslo_reports.guru_meditation_report [^[[00;36m-^[[01;33m] ^[[01;35m^[[01;33mGuru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.^[[00m
2016-05-30 00:12:07.305 ^[[00;36mINFO nova.virt.driver [^[[00;36m-^[[00;36m] ^[[01;35m^[[00;36mLoading compute driver 'novadocker.virt.docker.driver.DockerDriver'^[[00m
2016-05-30 00:12:07.306 ^[[01;31mERROR nova.virt.driver [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mUnable to load the virtualization driver^[[00m
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00mTraceback (most recent call last):
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00m File "/opt/stack/nova/nova/virt/driver.py", line 1624, in load_compute_driver
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00m virtapi)
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 44, in import_object
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00m return import_class(import_str)(*args, **kwargs)
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 30, in import_class
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00m __import__(mod_str)
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00mImportError: No module named novadocker.virt.docker.driver
^[[01;31m2016-05-30 00:12:07.306 TRACE nova.virt.driver ^[[01;35m^[[00m
n-cpu failed to start

Fix proposed to branch: master
Review: https://review.openstack.org/322694

Changed in nova:
assignee: nobody → caowei (caowei-e)
status: New → In Progress
Sean Dague (sdague) wrote :

The removal of import_object_ns is intentional. If you want to use an out of tree driver (which really isn't encouraged), you must make that a namespace package which lives in nova.virt.

Changed in nova:
status: In Progress → Won't Fix

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/322694

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers