Ask Your Question
0

libvirrt error: Connection reset by peer

asked 2012-05-24 06:58:20 -0500

mx-chilly gravatar image

I'm using a two node setup with Ubuntu 12.04, one cloud controller and one compute node. I'm using kvm and whenever I try to start an instance the compute node throws a libvirrt error:

2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] Traceback (most recent call last): 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 592, in _spawn 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] self._legacy_nw_info(network_info), block_device_info) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] return f(args, *kw) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 922, in spawn 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] self._create_new_domain(xml) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1575, in _create_new_domain 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] domain.createWithFlags(launch_flags) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/libvirt.py", line 581, in createWithFlags 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] libvirtError: Unable to read from monitor: Connection reset by peer

I checked the bios, I checked "lsmod | grep kvm" and "lsmod | grep nbd". KVM is enabled in the bios and the modules are loaded.

When I try using "virsh start domain-name", I see the same error: "error: Unable to read from monitor: Connection reset by peer" . Any hints on what's wrong here?

edit retag flag offensive close merge delete

11 answers

Sort by ยป oldest newest most voted
0

answered 2012-05-28 16:45:47 -0500

igor-laskovy gravatar image

You are welcome))

edit flag offensive delete link more
0

answered 2012-05-26 16:07:37 -0500

igor-laskovy gravatar image

Yep! Have the same trouble, but in VM under ESXi5 like nested hypervisor.

edit flag offensive delete link more
0

answered 2012-05-27 17:35:56 -0500

Igor, thanks, that worked perfectly!

edit flag offensive delete link more
0

answered 2012-05-26 16:46:58 -0500

igor-laskovy gravatar image

Well, found workaround. Since I don't need to use horizont I have del following from nova.conf: --novncproxy_base_url=http://<ip_of_your_controller>:6080/vnc_auto.html --vncserver_proxyclient_address=<ip_of_your_controller> --vncserver_listen=<ip_of_your_controller>

edit flag offensive delete link more
0

answered 2012-05-26 14:46:12 -0500

I'm hitting this error too. Same case, ubuntu 12.04, followed CSSCorp guide with some changes. The error is the same.

edit flag offensive delete link more
0

answered 2012-05-26 18:12:44 -0500

mx-chilly gravatar image

I tried that workaround and I updated the ubuntu on the host for the 100st time (sure feels like it) and now the error is gone. For me this doesn't make sense. Why should vnc settings have an influence on libvirt? And these were settings I copied from a working setup...

I also tried to reproduce the error by adding those lines again and restarting nova-compute. Well, it now works even with vns settings. But I would still love to hear an explanation of what the error actually was...

edit flag offensive delete link more
0

answered 2012-05-27 12:13:32 -0500

igor-laskovy gravatar image

Well, I have reread documentation and found in the http://docs.openstack.org/trunk/openstack-compute/install/content/ch_install-dashboard.html (http://docs.openstack.org/trunk/opens...) the following:

Q: My vnc proxy worked fine during my All-In-One test, but now it doesn't work on multi host. Why? A: The default options work for an All-In-One install, but changes must be made on your compute hosts once you start to build a cluster. As an example, suppose you have two servers: PROXYSERVER (public_ip=172.24.1.1, management_ip=192.168.1.1) COMPUTESERVER (management_ip=192.168.1.2)

These flags help construct a connection data structure

vncserver_proxyclient_address=192.168.1.2 novncproxy_base_url=http://172.24.1.1:6080/vnc_auto.html xvpvncproxy_base_url=http://172.24.1.1:6081/console

This is the address where the underlying vncserver (not the proxy)

will listen for connections.

vncserver_listen=192.168.1.2

So, looks like we need to change vncserver_proxyclient_address and vncserver_listen to local address on each compute nodes accordingly.

This is work for me too!

edit flag offensive delete link more
0

answered 2012-05-30 08:26:46 -0500

mx-chilly gravatar image

Thanks Igor Laskovy, that solved my question.

edit flag offensive delete link more
0

answered 2012-05-30 13:00:52 -0500

igor-laskovy gravatar image

You are welcome, Max))

edit flag offensive delete link more
0

answered 2012-07-23 22:23:59 -0500

I'm having a similar problem to this -- I've gone through the process of checking the parameters as indicated above, and they all match the intended configuration.

In general, I'm having a hard time figuring out how to debug then nova setup -- I have debug output enabled, but the exception handler appears to be fairly generic, and I don't know how to get figure out what's causing

2012-07-23 16:21:46 TRACE nova File "/usr/lib/python2.7/dist-packages/libvirt.py", line 551, in create 2012-07-23 16:21:46 TRACE nova if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) 2012-07-23 16:21:46 TRACE nova libvirtError: Unable to read from monitor: Connection reset by peer

How did you figure it out in this instance?

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: 2012-05-24 06:58:20 -0500

Seen: 2,820 times

Last updated: Jul 24 '12