Ask Your Question
0

libvirt-bin is not running | nova-compute-kvm not running

asked 2013-01-05 11:06:06 -0500

mav910623 gravatar image

Hi guys im getting this error in my compute logs

TRACE nova libvirtError: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock’: No such file or directory

a ps -ea | grep nova

shows nothing

a ps -ea | grep libvirt

shows nothing

this is a compute node with nova-compute-kvm and libvirt installed. Horizon failed to start instances, just ERROR, same goes with manual launch of an instance from the controller node. all nodes can ping each other thru the management network. we are working with a guide for a folsom install

here: https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst (https://github.com/mseknibilel/OpenSt...)

Running Ubuntu 12.10 Server

Any help would be appreciated.

edit retag flag offensive close merge delete

6 answers

Sort by » oldest newest most voted
0

answered 2013-01-16 20:46:54 -0500

stephen-kahmann gravatar image

I am having the exact same issue. Were you able to make any progress?

edit flag offensive delete link more
0

answered 2013-01-17 14:46:36 -0500

stephen-kahmann gravatar image

I figured out the problem for me. Maybe it will help you Manvir.

I had to set the following lines in '/etc/libvirt/libvirtd.conf':

listen_tls = 0 listen_tcp = 1

This allowed me to start both the libvirt-bin and nova-compute services.

edit flag offensive delete link more
0

answered 2013-01-16 20:53:29 -0500

graham-hemingway gravatar image

Are you able to start libvirt-bin?

sudo service libvirt-bin start

edit flag offensive delete link more
0

answered 2013-01-16 20:59:09 -0500

stephen-kahmann gravatar image

Yes:

root@irad-compute:/home/irad-compute# service libvirt-bin start libvirt-bin start/running, process 23633 root@irad-compute:/home/irad-compute#

edit flag offensive delete link more
0

answered 2013-01-16 21:03:44 -0500

stephen-kahmann gravatar image

I see this is the libvirtd.log

2013-01-16 20:58:39.527+0000: 23799: info : libvirt version: 0.9.13 2013-01-16 20:58:39.527+0000: 23799: error : virNetTLSContextCheckCertFile:92 : Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory

edit flag offensive delete link more
0

answered 2013-01-16 21:27:02 -0500

stephen-kahmann gravatar image

Here's the full trace for me:

2013-01-16 15:00:11 DEBUG nova.virt.libvirt.driver [-] Connecting to libvirt: qemu:///system from (pid=12666) _get_connection /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py:340 2013-01-16 15:00:11 CRITICAL nova [-] Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory 2013-01-16 15:00:11 TRACE nova Traceback (most recent call last): 2013-01-16 15:00:11 TRACE nova File "/usr/bin/nova-compute", line 48, in <module> 2013-01-16 15:00:11 TRACE nova service.wait() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 659, in wait 2013-01-16 15:00:11 TRACE nova _launcher.wait() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 192, in wait 2013-01-16 15:00:11 TRACE nova super(ServiceLauncher, self).wait() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in wait 2013-01-16 15:00:11 TRACE nova service.wait() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait 2013-01-16 15:00:11 TRACE nova return self._exit_event.wait() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait 2013-01-16 15:00:11 TRACE nova return hubs.get_hub().switch() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch 2013-01-16 15:00:11 TRACE nova return self.greenlet.switch() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main 2013-01-16 15:00:11 TRACE nova result = function(args, kwargs) 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 132, in run_server 2013-01-16 15:00:11 TRACE nova server.start() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 398, in start 2013-01-16 15:00:11 TRACE nova self.manager.init_host() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 272, in init_host 2013-01-16 15:00:11 TRACE nova self.driver.init_host(host=self.host) 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 330, in init_host 2013-01-16 15:00:11 TRACE nova if not self.has_min_version(MIN_LIBVIRT_VERSION): 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 319, in has_min_version 2013-01-16 15:00:11 TRACE nova libvirt_version = self._conn.getLibVersion() 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 347, in _get_connection 2013-01-16 15:00:11 TRACE nova self._connect, self.uri, self.read_only) 2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 147, in proxy_call 2013-01-16 15:00:11 TRACE nova rv = execute(f ... (more)

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: 2013-01-05 11:06:06 -0500

Seen: 911 times

Last updated: Jan 17 '13