Ask Your Question
0

nova-compute on ubuntu 12.04 not starting

asked 2014-08-08 21:51:10 -0600

ccie.arnold gravatar image

updated 2014-08-12 17:18:51 -0600

SamYaple gravatar image

Hi,

I am running a 3 node openstack havana cluster, one controller, one neutron, one nova-compute.

All the others work fine but nova-compute does not start

Looking for some assistance

Thanks Arnold ccie.arnold@gmail.com

2014-08-08 19:49:11.423 17185 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2014-08-08 19:49:11.462 17185 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'
2014-08-08 19:49:11.468 17185 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver Traceback (most recent call last):
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1115, in load_compute_driver
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver     virtapi)
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 54, in import_object_ns
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 35, in import_class
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver     traceback.format_exception(*sys.exc_info())))
2014-08-08 19:49:11.468 17185 TRACE nova.virt.driver ImportError: Class LibvirtDriver cannot be found (['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 31, in import_class\n    return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'LibvirtDriver'\n"])

nova.conf

root@nova-compute:~# cat /etc/nova/nova.conf
[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
compute_driver=nova.virt.libvirt.LibvirtDriver
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata
# Auth
auth_strategy = keystone
# VNC
novncproxy_base_url=http://10.128.10.132:6080/vnc_auto.html
vnc_enabled = true
vnc_keymap = en_us
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.128.10.134
# Messaging
rpc_backend = nova.rpc.impl_kombu
rabbit_host = 10.128.10.132
# Neutron
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.128.10.133:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.128.10.132:5000/v2.0
#firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDrive
# Nova Metadata
service_neutron_metadata_proxy = True
neutron_metadata_proxy_shared_secret = helloOpenStackr
[DATABASE]
connection = mysql://nova:password@10.128.10.132/nova
edit retag flag offensive close merge delete

Comments

Please put updates in your main post. It helps make the post more readable.

SamYaple gravatar imageSamYaple ( 2014-08-12 17:19:44 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-08-13 12:14:00 -0600

raiesmh08 gravatar image

What distribution of openstack you are using ??

If you are using Folsom ahead then you should use compute driver as suggested by Sam Yaple. Otherwise you need to put long form for attribute.

Please visit - https://github.com/openstack/nova/com...

edit flag offensive delete link more

Comments

Ah ok. So there is the change. Grizzly and up use the short form. Folsom and below require the whole string. This one confused me.

SamYaple gravatar imageSamYaple ( 2014-08-13 12:31:47 -0600 )edit

Similar problem which was seen during folsom -

 https://lists.launchpad.net/openstack/msg18632.html
raiesmh08 gravatar imageraiesmh08 ( 2014-08-13 12:45:47 -0600 )edit
0

answered 2014-08-12 17:31:10 -0600

SamYaple gravatar image

Can you modify your nova.conf compute_driver section to say?

compute_driver=libvirt.LibvirtDriver

All the nodes I manage use that as the compute driver. Interestingly, the Internet would seem to disagree with this advice. However, I can only account for things I manage, and they all have what I listed above.

If that does not fix your issue, can you please provide additional information such as Openstack version, OS version (Ubuntu 12.04 is what you listed), and any guide you may be following to help track down the issue further.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-08 21:51:10 -0600

Seen: 1,150 times

Last updated: Aug 13 '14