[libvirt] [PATCH v2] Fix connection to already running session libvirtd

Martin Kletzander mkletzan at redhat.com
Mon Sep 1 05:38:52 UTC 2014


On Fri, Aug 29, 2014 at 02:18:59PM +0200, Christophe Fergeau wrote:
>Since 1b807f92, connecting with virsh to an already running session
>libvirtd fails with:
>$ virsh list --all
>error: failed to connect to the hypervisor
>error: no valid connection
>error: Failed to connect socket to
>'/run/user/1000/libvirt/libvirt-sock': Transport endpoint is already
>connected
>
>This is caused by a logic error in virNetSocketNewConnectUnix: even if
>the connection to the daemon socket succeeded, we still try to spawn the
>daemon and then connect to it.
>This commit changes the logic to not try to spawn libvirtd if we
>successfully connected to its socket.
>
>Most of this commit is whitespace changes, use of -w is used to look at
>it.
>---
>Same patch as the previous but with -w for easier review
>
>Christophe
>

ACK and safe for 1.2.8.

Thank you,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140901/4599edf1/attachment-0001.sig>


More information about the libvir-list mailing list