RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1222833 - We ship incomplete QMP documentation
Summary: We ship incomplete QMP documentation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Rezanina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1222834
TreeView+ depends on / blocked
 
Reported: 2015-05-19 09:24 UTC by Markus Armbruster
Modified: 2015-11-19 05:03 UTC (History)
8 users (show)

Fixed In Version: qemu-kvm-1.5.3-90.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1222834 (view as bug list)
Environment:
Last Closed: 2015-11-19 05:03:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2213 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2015-11-19 08:16:10 UTC

Description Markus Armbruster 2015-05-19 09:24:43 UTC
Description of problem:
We ship qmp-commands.txt, but not docs/qmp/qmp-events.txt docs/qmp/qmp-spec.txt.
We should either ship complete QMP documentation or none.

How reproducible:
Always

Steps to Reproduce:
1. Examine /usr/share/doc/qemu-kvm/*qmp*

Actual results:
Have only qmp-commands.txt

Expected results:
Either have qmp-commands.txt qmp-events.txt qmp-spec.txt, or nothing.

Comment 2 Markus Armbruster 2015-05-19 09:32:02 UTC
We should fix the following issue in qemu-events.txt before we ship
it: we document event BLOCK_JOB_ERROR members __com.redhat_reason and
__com.redhat_debug_info.  We need to take them both out, because they
aren't available in other versions of RHEL.

Comment 3 Miroslav Rezanina 2015-06-04 06:33:30 UTC
Fix included in qemu-kvm-1.5.3-90.el7

Comment 5 CongLi 2015-06-08 05:46:37 UTC
Hi Miroslav,

Checked the /usr/share/doc/qemu-kvm/*qmp* in version:
qemu-kvm-1.5.3-90.el7.x86_64

[root@amd-5400b-4-4 qemu-kvm]# pwd
/usr/share/doc/qemu-kvm
-rw-r--r--. 1 root root  70528 Jun  4 14:19 qmp-commands.txt
-rw-r--r--. 1 root root  15112 Jun  4 14:18 qmp-events.txt
-rw-r--r--. 1 root root   9945 Aug 27  2013 qmp-spec.txt


Here are some problems / confusions I found, could you help confirm them?

1. qmp-events.txt:

(1) I think it's better if there is an introduction at the beginning of the doc, which won't makes you feel sudden of the doc.

(2) About the event, the format should be like:
{ "timestamp": { "seconds": json-number, "microseconds": json-number }, "event": json-string, "data": json-object, }

instead of

{ "event": json-string, "data": json-object,
  "timestamp": { "seconds": json-number, "microseconds": json-number } }

2. qmp-spec.txt:

(1) Same problem as qmp-events.txt under "2.5 Asynchronous events"
{ "event": json-string, "data": json-object,
  "timestamp": { "seconds": json-number, "microseconds": json-number } }

3. qmp-commands.txt:
There are 3 parts in qmp-commands.txt:
Introduction, Regular Commands, Query Commands.

But there are some regular commands were added under "3. Query Commands", which is a little confused for the reader.
e.g. blockdev-add, chardev-remove, chardev-add


Thanks.

Comment 6 Markus Armbruster 2015-06-08 06:33:10 UTC
Thanks for reviewing actual contents, not just presence of the
documentation files.

Since this bug is about their presence, I suggest to let it pass QA,
and file separate bug(s) for contents problems worth addressing (if
any).


> 1. qmp-events.txt:
> 
> (1) I think it's better if there is an introduction at the beginning
> of the doc, which won't makes you feel sudden of the doc.

The introduction is in qmp-spec.txt.  We could add a paragraph to the
beginning of qmp-events.txt pointing back to it.

If you think something like that is worth doing, please file a bug
against RHEL-7 qemu-kvm-rhev, and we'll take it from there.

> (2) About the event, the format should be like:
> { "timestamp": { "seconds": json-number, "microseconds": json-number }, "event": json-string, "data": json-object, }
> 
> instead of
> 
> { "event": json-string, "data": json-object,
>   "timestamp": { "seconds": json-number, "microseconds": json-number } }

Both forms are equivalent, as the order of members in a JSON object
does not matter.  Any particular reason for wanting another order
here?

> 2. qmp-spec.txt:
> 
> (1) Same problem as qmp-events.txt under "2.5 Asynchronous events"
> { "event": json-string, "data": json-object,
>   "timestamp": { "seconds": json-number, "microseconds": json-number } }

Likewise.

> 3. qmp-commands.txt:
> There are 3 parts in qmp-commands.txt:
> Introduction, Regular Commands, Query Commands.
> 
> But there are some regular commands were added under "3. Query
> Commands", which is a little confused for the reader.
> e.g. blockdev-add, chardev-remove, chardev-add

Messed up upstream.  If you think it's worth fixing, please file a bug
against RHEL-7 qemu-kvm-rhev, and we'll take it from there.

Comment 7 CongLi 2015-06-08 06:44:35 UTC
(In reply to Markus Armbruster from comment #6)
> Thanks for reviewing actual contents, not just presence of the
> documentation files.
> 
> Since this bug is about their presence, I suggest to let it pass QA,
> and file separate bug(s) for contents problems worth addressing (if
> any).

Ok, agree with you.

> > (2) About the event, the format should be like:
> > { "timestamp": { "seconds": json-number, "microseconds": json-number }, "event": json-string, "data": json-object, }
> > 
> > instead of
> > 
> > { "event": json-string, "data": json-object,
> >   "timestamp": { "seconds": json-number, "microseconds": json-number } }
> 
> Both forms are equivalent, as the order of members in a JSON object
> does not matter.  Any particular reason for wanting another order
> here?
 
Yes, both forms are equivalent.
I just follow the output of the actual result, it's not a big deal actually.


> > 3. qmp-commands.txt:
> > There are 3 parts in qmp-commands.txt:
> > Introduction, Regular Commands, Query Commands.
> > 
> > But there are some regular commands were added under "3. Query
> > Commands", which is a little confused for the reader.
> > e.g. blockdev-add, chardev-remove, chardev-add
> 
> Messed up upstream.  If you think it's worth fixing, please file a bug
> against RHEL-7 qemu-kvm-rhev, and we'll take it from there.


Hi Markus,

Thanks for your explanation.

I think there are no more problems from my side, we can set this bug to 'QA' now.

Thanks.

Comment 9 mazhang 2015-07-03 02:23:39 UTC
Reproduce this bug on qemu-kvm-1.5.3-86.el7

Steps:

# ls /usr/share/doc/qemu-kvm/*qmp*
/usr/share/doc/qemu-kvm/qmp-commands.txt

Verify this bug on qemu-kvm-1.5.3-92.el7

# ls /usr/share/doc/qemu-kvm/*qmp*
/usr/share/doc/qemu-kvm/qmp-commands.txt  /usr/share/doc/qemu-kvm/qmp-events.txt  /usr/share/doc/qemu-kvm/qmp-spec.txt

This bug has been fixed.

Comment 11 errata-xmlrpc 2015-11-19 05:03:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2213.html


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