Re: [libvirt] [virt-tools-list] virt-manager/libvirt backwards compatibility problem?

On 07/27/2011 12:28 PM, Whit Blauvelt wrote:
Looks like my real problem may be not incorporating a Debian/Ubuntu patch before building 0.9.x, since netcat differs:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/517478
Hmm, what was the error message you were getting? We've made efforts at the libvirt level to have useful error reporting here, so that the cause of failure is more obvious. Also, I patched virt-manager a while ago to use a shell script to handle both RH and debian 'nc' versions. Script is here: http://git.fedorahosted.org/git?p=virt-manager.git;a=blob;f=src/virtManager/... Yeah, it's complete and utter crack, but this has been a constant frustration for users, so maybe worth revisiting at the libvirt level (and hey, launching nc over ssh is kinda crack to being with :) ). Even if we solved this in a clean way by providing our own /usr/libexec/libvirt_nc binary, we'd still probably have to play shell script games over SSH to handle connecting to older libvirt (or what if libvirt_nc was installed somewhere other than libexec?) - Cole

On Wed, Jul 27, 2011 at 12:46:02PM -0400, Cole Robinson wrote:
Hmm, what was the error message you were getting? We've made efforts at the libvirt level to have useful error reporting here, so that the cause of failure is more obvious.
Debug-level error sequence at http://transpect.com/debug/virsh.txt
Also, I patched virt-manager a while ago to use a shell script to handle both RH and debian 'nc' versions. Script is here:
http://git.fedorahosted.org/git?p=virt-manager.git;a=blob;f=src/virtManager/...
That's in the 0.9.0 virt-manager, but fails in my context, which where the systems I'm trying to manage are 0.8.3 from Ubuntu debs, and I'm on the latest versions of this all built from tar. Whit

The error from virt-manager 0.9.0's perspective is: Unable to open a connection to the libvirt management daemon. Libvirt URI is: qemu+ssh://root@192.168.1.65/system Verify that: - The 'libvirtd' daemon has been started [yes, it is] Cannot recv data: 15:42:02.778: 29831: debug : virCommandHook:1959 : Hook is done 0: Connection reset by peer Traceback (most recent call last): File "/usr/src/virt-manager-0.9.0/src/virtManager/connection.py", line 1146, in _open_thread self.vmm = self._try_open() File "/usr/src/virt-manager-0.9.0/src/virtManager/connection.py", line 1130, in _try_open flags) File "/usr/local/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: Cannot recv data: 15:42:02.778: 29831: debug : virCommandHook:1959 : Hook is done 0: Connection reset by peer - Whit
participants (3)
-
Cole Robinson
-
Whit Blauvelt
-
Whit Blauvelt