<html><body>
<p><font size="2" face="sans-serif">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</font><br>
<br>
<font size="2" face="sans-serif">Best Regards! <br>
<br>
Kevin (Chen) Ji 纪 晨<br>
<br>
Engineer, zVM Development, CSTL<br>
Notes: Chen CH Ji/China/IBM@IBMCN Internet: jichenjc@cn.ibm.com<br>
Phone: +86-10-82454158<br>
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC </font><br>
<br>
<img width="16" height="16" src="cid:1__=C7BBF71FDFA3CE198f9e8a93df938@cn.ibm.com" border="0" alt="Inactive hide details for Mohammad Hosein Zarei ---11/10/2014 04:41:03 PM--- Hi everyone"><font size="2" color="#424282" face="sans-serif">Mohammad Hosein Zarei ---11/10/2014 04:41:03 PM--- Hi everyone</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From: </font><font size="1" face="sans-serif">Mohammad Hosein Zarei <hosein.zarei@gmail.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To: </font><font size="1" face="sans-serif">openstack-dev@lists.openstack.org</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date: </font><font size="1" face="sans-serif">11/10/2014 04:41 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">[openstack-dev] Add Modified Compute Driver to Nova</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="3" face="Tahoma"></font><br>
<font size="3" face="Tahoma">Hi everyone</font><br>
<font size="3" face="Tahoma">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.</font><br>
<font size="3" face="Tahoma">Also, nova.conf modified to use this driver (compute_driver=libvirt.my_driver.MyDriver).<br>
I can't start nova-compute with this modified driver and nova.conf. When nova-compute start , it shows this error:<br>
</font>
<ul style="padding-left: 9pt"><font size="3" face="Tahoma"><i>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<br>
2014-11-10 12:03:25.401 INFO nova.virt.driver [-] Loading compute driver 'libvirt.my_driver.MyDriver'<br>
2014-11-10 12:03:25.406 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative<br>
2014-11-10 12:03:25.424 ERROR nova.virt.driver [-] Unable to load the virtualization driver<br>
2014-11-10 12:03:25.424 TRACE nova.virt.driver Traceback (most recent call last):<br>
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<br>
2014-11-10 12:03:25.424 TRACE nova.virt.driver virtapi)<br>
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<br>
2014-11-10 12:03:25.424 TRACE nova.virt.driver return import_class(import_str)(*args, **kwargs)<br>
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<br>
2014-11-10 12:03:25.424 TRACE nova.virt.driver __import__(mod_str)<br>
2014-11-10 12:03:25.424 TRACE nova.virt.driver ImportError: No module named my_driver</i></font></ul>
<font size="3" face="Tahoma"><br>
I really appreciate with any idea.<br>
</font><br>
<font size="3" face="Tahoma">Best Regard. </font><br>
<font size="3" face="serif"><br>
<br>
-- </font><br>
<font size="3" face="serif">M.H.Zarei</font><tt><font size="2">_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>