[libvirt] [PATCH] virsh: Don't clear old connection if 'connect $uri' fails

Martin Kletzander mkletzan at redhat.com
Thu Apr 21 06:38:10 UTC 2016


On Wed, Apr 20, 2016 at 02:19:06PM -0400, Cole Robinson wrote:
>    virsh # list --all
>     Id    Name                           State
>    ----------------------------------------------------
>     1     test                           running
>
>    virsh # connect frob
>    error: Failed to connect to the hypervisor
>    error: no connection driver available for frob
>
>    virsh # list --all
>    error: failed to connect to the hypervisor
>    error: no valid connection
>    error: no connection driver available for frob
>
>Seems sensible IMO to just not clear out the old connection state
>until the new virConnectOpen succeeds.
>

Makes sense, ACK.
-------------- 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/20160421/aeec0fa1/attachment-0001.sig>


More information about the libvir-list mailing list