Ask Your Question
2

HypervisorUnavailable: Connection to the hypervisor is broken on host: compute01

asked 2014-12-25 07:01:07 -0500

RHK gravatar image

updated 2014-12-27 01:30:22 -0500

Hello,

I deployed a openstack multinode with juno release, when i launch VM status is getting error.

Here is the error logs i found in nova,

root@compute01:/var/log/nova# tail -f nova-compute.log
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3299, in _get_host_capabilities
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup     xmlstr = self._conn.getCapabilities()
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 775, in _get_connection
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup     wrapped_conn = self._get_new_connection()
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 728, in _get_new_connection
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup     wrapped_conn = self._connect(self.uri(), self.read_only)
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 848, in _connect
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup     raise exception.HypervisorUnavailable(host=CONF.host)
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup HypervisorUnavailable: Connection to the hypervisor is broken on host: compute01
2014-12-25 02:17:57.947 7882 TRACE nova.openstack.common.threadgroup

and when i restart libvirt service getting unknown job,

root@compute01:~# service libvirt-bin restart
stop: Unknown job: libvirt-bin
start: Unknown job: libvirt-bin

I verified from hypervisor side it looks ok.

root@compute01:~# kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

here is my qemu.conf

cgroup_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet","/dev/net/tun"
]

nova-compute.conf

root@compute01:~# vim /etc/nova/nova-compute.conf
[DEFAULT]
compute_driver=libvirt.LibvirtDriver
[libvirt]
virt_type=kvm

any one let me know what i am missing from hypervisor side.

Regards,
RHK

edit retag flag offensive close merge delete

Comments

libvirt-bin should run as service in Ubuntu. There was error with Libvirt&&KVM setup.

dbaxps gravatar imagedbaxps ( 2014-12-25 07:13:27 -0500 )edit

is there any solution to fix this issue?

RHK gravatar imageRHK ( 2014-12-25 07:27:08 -0500 )edit

5 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-26 00:05:23 -0500

exergy gravatar image

hope you have upgraded and updated your OS before juno installation also you can check your config files

edit flag offensive delete link more

Comments

kernel updates done with out any issue.

RHK gravatar imageRHK ( 2014-12-26 00:32:43 -0500 )edit
1

answered 2015-01-23 14:25:59 -0500

I ran into similar issue and in my case the user (stack) was not added to the libvirtd group. I executed the command "sudo gpasswd -a stack libvirtd" to add the user 'stack' to libvirtd group. I logged out and logged in for the changes to take effect, restarted screen and the issue was resolved. Execute the 'id <user>' command to confirm if the user has been added to libvirtd group.

stack@vish-ubuntu:~$ id stack uid=1001(stack) gid=1001(stack) groups=1001(stack),27(sudo),122(libvirtd)

edit flag offensive delete link more

Comments

I got the same issue. After executed "sudo gpasswd -a nova libvirt", current the service nova-compute is normal, thank you.

tsengyichun gravatar imagetsengyichun ( 2016-03-14 03:51:21 -0500 )edit
0

answered 2015-12-11 06:47:45 -0500

chandra gravatar image

Try "/etc/init.d/libvirt-bin restart" instead of "service libvirt-bin restart" and then restart nova-compute

edit flag offensive delete link more
0

answered 2014-12-25 07:16:31 -0500

dbaxps gravatar image

updated 2014-12-25 07:17:00 -0500

Run in shell:

libvirt -l 
and you'll see why it fails.
You can have a look into /var/log/libvirtd.log
edit flag offensive delete link more

Comments

no logs found in /var/log/libvirtd.log

root@compute01:~# libvirtd -l

command hanging no output.

RHK gravatar imageRHK ( 2014-12-25 07:24:50 -0500 )edit

Here instructions for 14.04 bare metal :- http://sharadchhetri.com/2014/10/09/i...

dbaxps gravatar imagedbaxps ( 2014-12-25 08:45:00 -0500 )edit

I've just reproduced KVM&&Libvirt install on VM (2 VCPUS, 4 GB RAM)

boris@boris-KVM:~$ sudo stop libvirt-bin
libvirt-bin stop/waiting
boris@boris-KVM:~$ sudo start libvirt-bin
libvirt-bin start/running, process 7367
dbaxps gravatar imagedbaxps ( 2014-12-25 09:54:52 -0500 )edit

During apt-get install qemu-kvm libvirt-bin bridge-utils

Setting up libvirt-bin (1.2.2-0ubuntu13.1.7) ...
Adding group `libvirtd' (GID 126) ...
Done.
libvirt-bin start/running, process 5414
dbaxps gravatar imagedbaxps ( 2014-12-25 09:56:58 -0500 )edit

Check your configuration files.

dbaxps gravatar imagedbaxps ( 2014-12-25 09:58:41 -0500 )edit
0

answered 2015-06-14 21:13:30 -0500

This is usually due to libvirtd set to listen to TLS connections.

Edit the following:

/etc/libvirt/libvirtd.conf

Find the following line:

listen_tls = 1

And change it to:

listen_tls = 0

Restart libvirtd and restart nova-compute.

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-12-25 07:01:07 -0500

Seen: 5,352 times

Last updated: Dec 11 '15