[Openstack] nova compute service fail to start due to "Connection to the hypervisor is broken on host"

Du Jun dj199008 at gmail.com
Wed Dec 3 05:48:48 UTC 2014


Hi all,

I install devstack in ubuntu12.04 and upgrade libvirt 0.9.8 to 1.2.2. The
libvirt version in my linux box is:

dujun at dujun-OptiPlex-3020:~/devstack$ virsh -v
1.2.2

And the error message in nova-cpu.log is such like that:

2014-12-03 11:00:13.007 ERROR nova.openstack.common.threadgroup [-]
Connection to the hypervisor is broken on host: dujun-OptiPlex-3020
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup Traceback
(most recent call last):
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/openstack/common/threadgroup.py", line 145, in wait
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     x.wait()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/openstack/common/threadgroup.py", line 47, in wait
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     return
self.thread.wait()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 173,
in wait
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     return
self._exit_event.wait()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in
wait
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     return
hubs.get_hub().switch()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 293, in
switch
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     return
self.greenlet.switch()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 212,
in main
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     result
= function(*args, **kwargs)
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/openstack/common/service.py", line 492, in run_service
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
service.start()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/service.py", line 164, in start
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
self.manager.init_host()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/compute/manager.py", line 1124, in init_host
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
self.driver.init_host(host=self.host)
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 507, in init_host
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
self._do_quality_warnings()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 486, in
_do_quality_warnings
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     caps =
self._get_host_capabilities()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 2991, in
_get_host_capabilities
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     xmlstr
= self._conn.getCapabilities()
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup   File
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 543, in _get_connection
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup     raise
exception.HypervisorUnavailable(host=CONF.host)
2014-12-03 11:00:13.007 TRACE nova.openstack.common.threadgroup
HypervisorUnavailable: Connection to the hypervisor is broken on host:
dujun-OptiPlex-3020

I wonder why nova can't find the libvirt hypervisor since I have added

compute_driver = libvirt.LibvirtDriver

in /etc/nova/nova.conf.

--
Regards,
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141203/e7538280/attachment.html>


More information about the Openstack mailing list