Ask Your Question
0

nova-compute and neutron-openvswitch-agent dead [closed]

asked 2015-11-24 04:39:41 -0500

cloudlearner gravatar image

updated 2015-11-25 22:19:45 -0500

Configured three node(controller, network and compute) icehouse setup with neutron. The setup is working fine. Now I want to add another compute node to the setup and I followed the same procedure of adding compute node and configured all the required changes of IP address wherever needed (nova.conf, neutron.conf, ml2_plugin,etc.) The problem I am facing is that the nova-compute and neutron-openvswitch-agent service are dead though they were started.

Error in compute.log :

2015-11-24 15:08:27.207 17326 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver Traceback (most recent call last):
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver   File "/usr/lib/python2.6/site-packages/nova/virt/driver.py", line 1301, in load_compute_driver
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver     virtapi)
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver   File "/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py", line 52, in import_object_ns
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver     return import_class(import_str)(*args, **kwargs)
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver   File "/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py", line 33, in import_class
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver     traceback.format_exception(*sys.exc_info())))
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver ImportError: Class LibvirtDriver cannot be found (['Traceback (most recent call last):\n', '  File "/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py", line 29, in import_class\n    return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'LibvirtDriver'\n"])
2015-11-24 15:08:27.207 17326 TRACE nova.virt.driver

[root@compute2 ~]# rpm -qa \*neutron\*
python-neutronclient-2.3.4-4.el6.noarch
openstack-neutron-openvswitch-2014.1.5-1.el6.noarch
openstack-neutron-ml2-2014.1.5-1.el6.noarch
python-neutron-2014.1.5-1.el6.noarch
openstack-neutron-2014.1.5-1.el6.noarch
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by cloudlearner
close date 2015-12-02 03:20:43.612243

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-11-25 23:53:35 -0500

Prateek K gravatar image

As per the traceback when python is trying to load modules it is unable to find the class 'LibvirtDriver, What I suggest is try to see if that module is installed or not.

As you have two compute nodes, login to the compute node that is working and see the file and the module which it is trying to import. Modules would generally be in '/usr/lib/python2.x/dist-packages/'.

Once you do that perform the same thing in the second compute node(The faulty one). You will get to know which module is not present in the second node and finally install it manually.

Note- You need to have a good knowledge of python else it will be a deep sea :P. Secondly before proceeding with this solution double check your configuration files as if that is the cause there is no need to debug the modules .

edit flag offensive delete link more

Comments

Ok... if nova-compute service itself is dead can you please go to the logs /var/log/nova/compute.log and see whats the problem. It would be good if you can paste the logs here.

My wild guess would be that its not able to make connection to the AMQP server running on the controller node(Common issue

Prateek K gravatar imagePrateek K ( 2015-12-01 01:16:14 -0500 )edit

Please refer question for the logs.

cloudlearner gravatar imagecloudlearner ( 2015-12-01 01:46:10 -0500 )edit

I just went through the code and the Function ''load_compute_driver'' takes the value of compute driver from the configuration file 'compute_driver = CONF.compute_driver'

The function 'load_compute_driver' is failing as there is no Class LibvirtDriver, Can you double check the config file?

Prateek K gravatar imagePrateek K ( 2015-12-01 02:08:32 -0500 )edit

Try to use 'compute_driver=nova.virt.libvirt.LibvirtDriver' in the config file and see if it works.

It can be a namespace issue as well as it is trying to find that class inside that particular namespace

Prateek K gravatar imagePrateek K ( 2015-12-01 02:13:52 -0500 )edit

i have rechecked the configurations but every thing is same as the older compute node and I had tried with compute_driver = nova.virt.libvirt.LibvirtDriver but no change. Suggest something else.

cloudlearner gravatar imagecloudlearner ( 2015-12-01 05:38:25 -0500 )edit
0

answered 2015-11-24 05:00:28 -0500

dbaxps gravatar image
edit flag offensive delete link more

Comments

In my first compute node the value of compute driver = libvirt.LibvirtDriver and it is working fine. We are adding a second compute node and making the changes according to the first one but here its not working fine. Also we have already tried what you suggested but it doesn't work too.

cloudlearner gravatar imagecloudlearner ( 2015-11-24 05:25:15 -0500 )edit

If you are on CentOS 7.X, which packages have been installed ?

dbaxps gravatar imagedbaxps ( 2015-11-24 05:38:13 -0500 )edit

i m on centos 6.6, and i have installed openstack-nova-compute

cloudlearner gravatar imagecloudlearner ( 2015-11-24 05:43:51 -0500 )edit

Have you neutron-openvswitch-agent running on Compute (new one) ?

dbaxps gravatar imagedbaxps ( 2015-11-24 05:54:16 -0500 )edit

no it also shows dead

cloudlearner gravatar imagecloudlearner ( 2015-11-24 05:56:04 -0500 )edit
0

answered 2015-11-24 05:05:59 -0500

Please check /etc/neutron/plugins/ml2/ml2_conf.ini file, in the [securitygroup]section.

Go to firewall_driverentry.

Correct value for Ubuntu 12/14 - Icehouse should be:

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

Offical Documentation.

edit flag offensive delete link more

Comments

thanks for rply, my firewall_driver is same as you suggested.

cloudlearner gravatar imagecloudlearner ( 2015-11-24 05:13:50 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-11-24 04:39:41 -0500

Seen: 262 times

Last updated: Nov 25 '15