Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Nova compute using VMware driver instead of KVM

 Hi, 

I am facing a problem like openstack installation auto detecting the hypervisor type and 
installing the compute driver accordingly. compute driver got 
installed was vmware, but i would like to install libvirt driver. 

If i change the conf file as below and restarting nova-compute says below error
[DEFAULT] 
compute_driver=libvirt.LibvirtDriver 

[libvirt] 
virt_type = qemu 

i am getting error like 

2015-06-16 15:08:02.887 21269 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'
2015-06-16 15:08:02.892 21269 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2015-06-16 15:08:02.903 21269 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver Traceback (most recent call last):
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1389, in load_compute_driver
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver     virtapi)
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 52, in import_object_ns
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 27, in import_class
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver     __import__(mod_str)
2015-06-16 15:08:02.903 21269 TRACE nova.virt.driver ImportError: No module named libvirt