Bug 2095093

Summary: migrate-setspeed cannot set the speed of blockjob in non-shared disk migration
Product: Red Hat Enterprise Linux 9 Reporter: Han Han <hhan>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
libvirt sub component: Live Migration QA Contact: Fangge Jin <fjin>
Status: NEW --- Docs Contact:
Severity: low    
Priority: low CC: fjin, lcheng, lmen, meili, nilal, peterx, pkrempa, virt-maint, xuzhang, yafu
Version: 9.1Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Han Han 2022-06-09 02:17:37 UTC
Description of problem:
As subject

Version-Release number of selected component (if applicable):
libvirt-8.3.0-1.el9.x86_64
qemu-kvm-7.0.0-4.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Start an VM. Do non-shared disk migration with a bandwidth value:
➜  ~ virsh migrate OVMF qemu+ssh://root@hhan-rhel9--2/system --live --copy-storage-all --bandwidth 2

2. Set the bandwidth by migrate-setspeed and the check it by blockjob
➜  ~ virsh migrate-setspeed OVMF 4                                                                  

➜  ~ virsh blockjob OVMF vda                                                                        
Block Copy: [  0 %]    Bandwidth limit: 2097152 bytes/s (2.000 MiB/s)

The bandwidth value from blockjob is not expected

Actual results:
As above

Expected results:
The bandwidth got from blockjob == the bandwidth set by migrate-setspeed

Additional info:
From qmp of migrate-setspeed shows only the speed of VM migration is set:
1351.716 > 0x7f58283baf10 {"execute":"migrate-set-parameters","arguments":{"max-bandwidth":4194304},"id":"libvirt-448"}
1351.717 < 0x7f58283baf10 {"return": {}, "id": "libvirt-448"}