]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Add keepalive in new vshConnect function
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 6 Mar 2014 16:20:11 +0000 (17:20 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 18 Mar 2014 07:27:29 +0000 (08:27 +0100)
commit676cb4f4e762b8682a06c6dab1f690fbcd939550
treeaaea385aca463eef50d3f3d6ca507be774451cd7
parent29ea8a9b64aac60251d283f74d57690e4edb5a6b
virsh: Add keepalive in new vshConnect function

Introducing keepalive similarly to Guannan around 2 years ago.  Since
we want to introduce keepalive for every connection, it makes sense to
wrap the connecting function into new virsh one that can deal
keepalive as well.

Function vshConnect() is now used for connecting and keepalive added
in that function (if possible) helps preventing long waits e.g. while
nework goes down during migration.

This patch also adds the options for keepalive tuning into virsh and
fails connecting only when keepalives are explicitly requested and
cannot be set (whether it is due to missing support in connected
driver or remote server).  If not explicitely requested, a debug
message is printed (hence the addition to virsh-optparse test).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1073506
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=822839

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/virsh-optparse
tools/virsh-domain.c
tools/virsh.c
tools/virsh.h
tools/virsh.pod