[openstack-dev] Add Modified Compute Driver to Nova

Chen CH Ji jichenjc at cn.ibm.com
Mon Nov 10 08:48:16 UTC 2014

which value did you put ?  From my former experience, also check your
my_driver's init function, something wrong in that function can also lead
to this error, good luck

Best Regards!

Kevin (Chen) Ji 纪 晨

Engineer, zVM Development, CSTL
Notes: Chen CH Ji/China/IBM at IBMCN   Internet: jichenjc at cn.ibm.com
Phone: +86-10-82454158
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
Beijing 100193, PRC

From:	Mohammad Hosein Zarei <hosein.zarei at gmail.com>
To:	openstack-dev at lists.openstack.org
Date:	11/10/2014 04:41 PM
Subject:	[openstack-dev] Add Modified Compute Driver to Nova

Hi everyone
I have a modified compute driver (my_driver.py and my_driver.pyc) and I
copied files to /opt/stack/nova/nova/virt/libvirt/ directory.
Also, nova.conf modified to use this driver
I can't start nova-compute with this modified driver and nova.conf. When
nova-compute start , it shows this error:

  2014-11-10 12:03:25.300 DEBUG nova.servicegroup.api [-] ServiceGroup
  driver defined as an instance of db from (pid=18709)
  __new__ /opt/stack/nova/nova/servicegroup/api.py:65
  2014-11-10 12:03:25.401 INFO nova.virt.driver [-] Loading compute driver
  2014-11-10 12:03:25.406 INFO nova.openstack.common.periodic_task [-]
  Skipping periodic task _periodic_update_dns because its interval is
  2014-11-10 12:03:25.424 ERROR nova.virt.driver [-] Unable to load the
  virtualization driver
  2014-11-10 12:03:25.424 TRACE nova.virt.driver Traceback (most recent
  call last):
  2014-11-10 12:03:25.424 TRACE nova.virt.driver   File
  "/opt/stack/nova/nova/virt/driver.py", line 1385, in load_compute_driver
  2014-11-10 12:03:25.424 TRACE nova.virt.driver     virtapi)
  2014-11-10 12:03:25.424 TRACE nova.virt.driver   File
  "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line
  52, in import_object_ns
  2014-11-10 12:03:25.424 TRACE nova.virt.driver     return import_class
  (import_str)(*args, **kwargs)
  2014-11-10 12:03:25.424 TRACE nova.virt.driver   File
  "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line
  27, in import_class
  2014-11-10 12:03:25.424 TRACE nova.virt.driver     __import__(mod_str)
  2014-11-10 12:03:25.424 TRACE nova.virt.driver ImportError: No module
  named my_driver

I really appreciate with any idea.

Best Regard.

OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141110/82bd088c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141110/82bd088c/attachment.gif>

More information about the OpenStack-dev mailing list