[libvirt] [PATCH v4 0/4] Implement migrate-getmaxdowntime command

Scott Garfinkle posted 4 patches 6 years, 8 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1503008242-112534-1-git-send-email-scottgar@linux.vnet.ibm.com
docs/news.xml                    | 10 +++++++
include/libvirt/libvirt-domain.h |  4 +++
src/driver-hypervisor.h          |  6 +++++
src/libvirt-domain.c             | 41 ++++++++++++++++++++++++++++
src/libvirt_public.syms          |  4 +++
src/qemu/qemu_driver.c           | 58 ++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_monitor.h          |  3 +++
src/qemu/qemu_monitor_json.c     |  4 +++
src/remote/remote_driver.c       |  1 +
src/remote/remote_protocol.x     | 16 ++++++++++-
src/remote_protocol-structs      |  8 ++++++
tools/virsh-domain.c             | 42 +++++++++++++++++++++++++++++
tools/virsh.pod                  |  6 +++++
13 files changed, 202 insertions(+), 1 deletion(-)
[libvirt] [PATCH v4 0/4] Implement migrate-getmaxdowntime command
Posted by Scott Garfinkle 6 years, 8 months ago
Currently, the maximum tolerable downtime for a domain being migrated is
write-only. This patch implements a way to query that value nondestructively.

I've tried to incorporate the feedback from v3; however, I've left alone a
couple of places where the feedback would have diverged from parallelism with
the existing migrate-setdowntime help/info. Also, since the main use of this
new command is likely to be (as in virt-manager) in combination with 
migrate-setmaxdowntime, I don't think it's going to really help to add an
options to report this in some other unit other than milliseconds.

To-do: Ought to revisit setmaxdowntime to use the new preferred qemu interface.

Changes from [v3]:

* Incorporated suggestions, including adding an error message
* Added a patch to the news.xml file

[v1} https://www.redhat.com/archives/libvir-list/2017-July/msg00908.html
[v2} https://www.redhat.com/archives/libvir-list/2017-July/msg01010.html
[v3} https://www.redhat.com/archives/libvir-list/2017-July/msg01301.html

Scott Garfinkle (4)
    Add virDomainMigrateGetMaxDowntime public API
    qemu: Implement virDomainMigrateGetMaxDowntime
    virsh: Add support for virDomainMigrateGetMaxDowntime
    docs: document migrate-getmaxdowntime support

---
 docs/news.xml                    | 10 +++++++
 include/libvirt/libvirt-domain.h |  4 +++
 src/driver-hypervisor.h          |  6 +++++
 src/libvirt-domain.c             | 41 ++++++++++++++++++++++++++++
 src/libvirt_public.syms          |  4 +++
 src/qemu/qemu_driver.c           | 58 ++++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_monitor.h          |  3 +++
 src/qemu/qemu_monitor_json.c     |  4 +++
 src/remote/remote_driver.c       |  1 +
 src/remote/remote_protocol.x     | 16 ++++++++++-
 src/remote_protocol-structs      |  8 ++++++
 tools/virsh-domain.c             | 42 +++++++++++++++++++++++++++++
 tools/virsh.pod                  |  6 +++++
 13 files changed, 202 insertions(+), 1 deletion(-)

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v4 0/4] Implement migrate-getmaxdowntime command
Posted by Chris Friesen 6 years, 8 months ago
On 08/17/2017 04:17 PM, Scott Garfinkle wrote:
> Currently, the maximum tolerable downtime for a domain being migrated is
> write-only. This patch implements a way to query that value nondestructively.

I'd like register my support for the concept in general.  Seems odd to have 
something you can write but not read.

For what it's worth I took a look at the patches and didn't see anything 
horribly wrong, but I only dabble in libvirt so that's not worth much. :)

Chris

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v4 0/4] Implement migrate-getmaxdowntime command
Posted by John Ferlan 6 years, 8 months ago

On 08/17/2017 06:17 PM, Scott Garfinkle wrote:
> Currently, the maximum tolerable downtime for a domain being migrated is
> write-only. This patch implements a way to query that value nondestructively.
> 
> I've tried to incorporate the feedback from v3; however, I've left alone a
> couple of places where the feedback would have diverged from parallelism with
> the existing migrate-setdowntime help/info. Also, since the main use of this
> new command is likely to be (as in virt-manager) in combination with 
> migrate-setmaxdowntime, I don't think it's going to really help to add an
> options to report this in some other unit other than milliseconds.
> 
> To-do: Ought to revisit setmaxdowntime to use the new preferred qemu interface.
> 
> Changes from [v3]:
> 
> * Incorporated suggestions, including adding an error message
> * Added a patch to the news.xml file
> 
> [v1} https://www.redhat.com/archives/libvir-list/2017-July/msg00908.html
> [v2} https://www.redhat.com/archives/libvir-list/2017-July/msg01010.html
> [v3} https://www.redhat.com/archives/libvir-list/2017-July/msg01301.html
> 
> Scott Garfinkle (4)
>     Add virDomainMigrateGetMaxDowntime public API
>     qemu: Implement virDomainMigrateGetMaxDowntime
>     virsh: Add support for virDomainMigrateGetMaxDowntime
>     docs: document migrate-getmaxdowntime support
> 
> ---
>  docs/news.xml                    | 10 +++++++
>  include/libvirt/libvirt-domain.h |  4 +++
>  src/driver-hypervisor.h          |  6 +++++
>  src/libvirt-domain.c             | 41 ++++++++++++++++++++++++++++
>  src/libvirt_public.syms          |  4 +++
>  src/qemu/qemu_driver.c           | 58 ++++++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_monitor.h          |  3 +++
>  src/qemu/qemu_monitor_json.c     |  4 +++
>  src/remote/remote_driver.c       |  1 +
>  src/remote/remote_protocol.x     | 16 ++++++++++-
>  src/remote_protocol-structs      |  8 ++++++
>  tools/virsh-domain.c             | 42 +++++++++++++++++++++++++++++
>  tools/virsh.pod                  |  6 +++++
>  13 files changed, 202 insertions(+), 1 deletion(-)
> 
> --
> libvir-list mailing list
> libvir-list@redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
> 

This is now pushed - I also generated/sent python and perl binding patches.

Tks -

John

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list