Bug 1398599 - virsh domjobinfo storage migration progress
Summary: virsh domjobinfo storage migration progress
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Denemark
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-25 11:49 UTC by Ruben Kerkhof
Modified: 2017-09-08 15:32 UTC (History)
10 users (show)

Fixed In Version: libvirt-3.8.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-08 15:32:53 UTC


Attachments (Terms of Use)

Description Ruben Kerkhof 2016-11-25 11:49:02 UTC
As discussed on the libvirt mailing list (https://www.redhat.com/archives/libvir-list/2016-November/msg01270.html), 'virsh domjobinfo' used to provide progress info for storage migration:

Job type:         Unbounded
Time elapsed:     1830632      ms
Data processed:   37.212 GiB
Data remaining:   1.025 GiB
Data total:       16.016 GiB
Memory processed: 37.212 GiB
Memory remaining: 1.025 GiB
Memory total:     16.016 GiB
Memory bandwidth: 100.018 MiB/s
Constant pages:   618279
Normal pages:     9734623
Normal data:      37.135 GiB
Expected downtime: 1118         ms
Setup time:       61           ms

It doesn't anymore for qemu-kvm versions that do use nbd, but don't support migration events:

$ sudo virsh domjobinfo 58358fec-c35c-4a7a-a4dd-18ec2e1327bf
Job type:         Unbounded
Time elapsed:     209616       ms

Comment 1 Jiri Denemark 2017-09-08 15:32:53 UTC
This was implemented upstream by Nikolay Shirokovskiy in the "qemu: migration: show disks stats for nbd migration" series. The following is the most interesting commit from the series:

commit 8c4665833750c66b435634678d0df2b71273e177
Refs: v3.7.0-28-g8c46658337
Author:     Nikolay Shirokovskiy <nshirokovskiy>
AuthorDate: Fri Sep 1 09:49:30 2017 +0300
Commit:     Jiri Denemark <jdenemar>
CommitDate: Thu Sep 7 11:18:10 2017 +0200

    qemu: migrate: add mirror stats to migration stats

    When getting job info in case mirror does not reach ready phase
    fetch mirror stats from qemu. Otherwise mirror stats are already
    saved in current job.

    Signed-off-by: Jiri Denemark <jdenemar>


Note You need to log in before you can comment on or make changes to this bug.