Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1829699

Summary: Stop using deprecated "query-migrate-cache-size" QMP command
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Li Xiaohui <xiaohli>
Component: qemu-kvmAssignee: Jiri Herrmann <jherrman>
qemu-kvm sub component: Live Migration QA Contact: Li Xiaohui <xiaohli>
Status: CLOSED UPSTREAM Docs Contact:
Severity: unspecified    
Priority: unspecified CC: chayang, ehabkost, fjin, jinzhao, juzhang, pkrempa, qzhang, virt-maint, xianwang
Version: 8.2Keywords: TestOnly
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1829544 Environment:
Last Closed: 2020-07-07 00:34:58 UTC 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:
Bug Depends On: 1829544    
Bug Blocks:    

Description Li Xiaohui 2020-04-30 06:56:18 UTC
+++ This bug was initially created as a clone of Bug #1829544 +++

Description of problem:
"query-migrate-cache-size" is deprecated since qemu-2.11 and should be replaced by 'query-migrate-parameters'. Libvirt still uses it in qemuDomainMigrateGetCompressionCache.

When fixing this, please also adjust the test case to mark the command as okay to be removed.

Comment 3 Li Xiaohui 2020-06-15 08:04:43 UTC
Thanks for the remind. 
I will update migration test plan after libvirt remove them and use the replace by default on 8.3.0-av.

Comment 5 Eduardo Habkost 2020-06-15 18:12:06 UTC
I've just noticed we already have a libvirt BZ for this (bug 1829544), and this BZ description is 100% identical to the description fo that bug.  What is the purpose of this BZ?

Comment 6 Li Xiaohui 2020-06-16 02:07:17 UTC
(In reply to Eduardo Habkost from comment #5)
> I've just noticed we already have a libvirt BZ for this (bug 1829544), and
> this BZ description is 100% identical to the description fo that bug.  What
> is the purpose of this BZ?

This bz just be tracked on qemu side. 
I think we need update besides libvirt side, also need from qemu, so clone bz from libvirt.

Comment 7 Eduardo Habkost 2020-06-17 22:39:45 UTC
The summary and description of the BZ doesn't mention anything that needs to be done on the QEMU side.  QEMU itself is not a user of QMP commands.

If there's any task to be done on the QEMU side, please explain what needs to be done so we can change the BZ summary and description accordingly.  If there's no task to be done, I will close this BZ.

Comment 8 Li Xiaohui 2020-06-18 08:49:25 UTC
(In reply to Eduardo Habkost from comment #7)
> The summary and description of the BZ doesn't mention anything that needs to
> be done on the QEMU side.  QEMU itself is not a user of QMP commands.
> 
> If there's any task to be done on the QEMU side, please explain what needs
> to be done so we can change the BZ summary and description accordingly.  If
> there's no task to be done, I will close this BZ.

Yes, we want to document in qemu that these commands are deprecated on rhel8.3-av when related libvirt bz(Bug #1829544) fixed

Comment 10 Eduardo Habkost 2020-07-06 18:42:59 UTC
(In reply to Li Xiaohui from comment #8)
> (In reply to Eduardo Habkost from comment #7)
> > The summary and description of the BZ doesn't mention anything that needs to
> > be done on the QEMU side.  QEMU itself is not a user of QMP commands.
> > 
> > If there's any task to be done on the QEMU side, please explain what needs
> > to be done so we can change the BZ summary and description accordingly.  If
> > there's no task to be done, I will close this BZ.
> 
> Yes, we want to document in qemu that these commands are deprecated on
> rhel8.3-av when related libvirt bz(Bug #1829544) fixed

The QEMU documentation already indicates that query-migrate-cache-size is deprecated:
https://www.qemu.org/docs/master/interop/qemu-qmp-ref.html#index-query_002dmigrate_002dcache_002dsize

There's no customer documentation for QMP commands, so I still don't understand what needs to be done for this BZ.  Please clarify which documentation needs to be updated.

Comment 11 Li Xiaohui 2020-07-07 00:31:30 UTC
(In reply to Eduardo Habkost from comment #10)
> (In reply to Li Xiaohui from comment #8)
> > (In reply to Eduardo Habkost from comment #7)
> > > The summary and description of the BZ doesn't mention anything that needs to
> > > be done on the QEMU side.  QEMU itself is not a user of QMP commands.
> > > 
> > > If there's any task to be done on the QEMU side, please explain what needs
> > > to be done so we can change the BZ summary and description accordingly.  If
> > > there's no task to be done, I will close this BZ.
> > 
> > Yes, we want to document in qemu that these commands are deprecated on
> > rhel8.3-av when related libvirt bz(Bug #1829544) fixed
> 
> The QEMU documentation already indicates that query-migrate-cache-size is
> deprecated:
> https://www.qemu.org/docs/master/interop/qemu-qmp-ref.html#index-
> query_002dmigrate_002dcache_002dsize
> 
> There's no customer documentation for QMP commands, so I still don't
> understand what needs to be done for this BZ.  Please clarify which
> documentation needs to be updated.

Thanks, having seen the QEMU documentation.
I'm ok to close this bz.