Bug 1533105 - provide non-recursive output replacement for query-named-block-nodes
Summary: provide non-recursive output replacement for query-named-block-nodes
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: leidwang@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1793036
TreeView+ depends on / blocked
 
Reported: 2018-01-10 13:20 UTC by Peter Krempa
Modified: 2021-02-23 02:00 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-15 07:34:31 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
To illustrate, for a disk image chain with depth 4, see the attached output of `query-named-block-nodes` (14.08 KB, text/plain)
2018-02-07 14:42 UTC, Kashyap Chamarthy
no flags Details

Description Peter Krempa 2018-01-10 13:20:38 UTC
Description of problem:
The output of query-named-block-nodes and query-block provides a lot of redundant data by nesting the backing chain information, but then providing it again for other layers in a linear way. This means that we get N+(N-1)+...(1) data entries instead of N.

For a 200 layer backing chain this returns roughly 9MiB of json.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Kashyap Chamarthy 2018-02-07 14:42:09 UTC
Created attachment 1392702 [details]
To illustrate, for a disk image chain with depth 4, see the attached output of `query-named-block-nodes`

Comment 3 Ademar Reis 2020-02-05 22:46:17 UTC
QEMU has been recently split into sub-components and as a one-time operation to avoid breakage of tools, we are setting the QEMU sub-component of this BZ to "General". Please review and change the sub-component if necessary the next time you review this BZ. Thanks

Comment 4 Kashyap Chamarthy 2020-07-24 16:31:50 UTC
It looks like (I haven't tested it yet) this is fixed by this commit from Peter Krempa:


    https://git.qemu.org/?p=qemu.git;a=commit;h=facda5443f — qapi: Allow getting flat output from 'query-named-block-nodes'

Comment 7 RHEL Program Management 2021-02-15 07:34:31 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 8 leidwang@redhat.com 2021-02-23 02:00:12 UTC
According to https://bugzilla.redhat.com/show_bug.cgi?id=1793036#c6,set this bz to CURRENTRELEASE.Thanks.


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