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

Asked by Manvir Singh

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

Running Ubuntu 12.10 Server

Any help would be appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stephen (stephen-kahmann) said :
#1

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

Revision history for this message
Graham Hemingway (graham-hemingway) said :
#2

Are you able to start libvirt-bin?

sudo service libvirt-bin start

Revision history for this message
Stephen (stephen-kahmann) said :
#3

Yes:

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

Revision history for this message
Stephen (stephen-kahmann) said :
#4

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

Revision history for this message
Stephen (stephen-kahmann) said :
#5

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,*args,**kwargs)
2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 76, in tworker
2013-01-16 15:00:11 TRACE nova rv = meth(*args,**kwargs)
2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 401, in _connect
2013-01-16 15:00:11 TRACE nova return libvirt.openAuth(uri, auth, 0)
2013-01-16 15:00:11 TRACE nova File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
2013-01-16 15:00:11 TRACE nova if ret is None:raise libvirtError('virConnectOpenAuth() failed')
2013-01-16 15:00:11 TRACE nova libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

Revision history for this message
Stephen (stephen-kahmann) said :
#6

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.

Can you help with this problem?

Provide an answer of your own, or ask Manvir Singh for more information if necessary.

To post a message you must log in.