Ask Your Question

Nova-compute service fails to start: libvirt error

asked 2013-05-06 15:48:13 -0500

patrickvinas gravatar image

updated 2014-07-15 10:39:24 -0500

smaffulli gravatar image

Running Ubuntu 12.04 with Grizzly from the Ubuntu Cloud archive. I can't seem to get the nova-compute service to start.

From /var/log/nova/nova-compute.log:

  2013-05-06 10:33:58.677 1989 ERROR nova.virt.driver [-] Unable to load the virtualization driver: Class LibvirtDriver cannot be found (['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/", line 31, in import_class\n    return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'LibvirtDriver'\n"])

From /etc/nova/nova.conf:


I've checked in the nova/virt/libvirt/ and verified that the LibvirtDriver class exists. Any other troubleshooting tips or suggestions?

If I change compute_driver=libvirt.LibvirtDriver to compute_driver=nova.virt.libvirt.LibvirtDriver, the log contains the following instead:

2013-05-06 11:29:28.649 15082 INFO nova.virt.driver [-] Loading compute driver 'nova.virt.libvirt.LibvirtDriver'
2013-05-06 11:29:28.701 15082 ERROR nova.virt.driver [-] Unable to load the virtualization driver: No module named libvirt
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-06 17:02:18 -0500

patrickvinas gravatar image

updated 2014-07-15 10:40:07 -0500

smaffulli gravatar image

Problem solved. Adding the nova.virt namespace to the compute_driver option seems to have fixed that problem. The other error appears to have been caused by an incorrect entry in my firewall_driver config option (I had firewall.libvirt, instead of libvirt.firewall).

Also, filing a documentation bug to update the configuration options doc - nova.virt namespace seems to be required (if not for everyone, at least for some) and the documentation should reflect that.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-05-06 15:48:13 -0500

Seen: 2,632 times

Last updated: Jul 15 '14