Bug 754896 - Wrong input in qmp get wrong feed back for "query-*"
Summary: Wrong input in qmp get wrong feed back for "query-*"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.2
Hardware: Unspecified
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-18 05:48 UTC by Joy Pu
Modified: 2011-11-18 12:00 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-18 12:00:09 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Joy Pu 2011-11-18 05:48:34 UTC
Description of problem:
Feed back of wrong qmp input with query-* is always not including "query-" in RHEL6.2 host, for example:

{"execute": "query-a"}
{"error": {"class": "CommandNotFound", "desc": "The command a has not been found", "data": {"name": "a"}}}

{"execute": "query-"}
{"error": {"class": "CommandNotFound", "desc": "The command  has not been found", "data": {"name": ""}}} 

Other wrong cmd will not has this problem.

Version-Release number of selected component (if applicable):
kernel:
2.6.32-215.el6.x86_64
qemu-kvm:
rpm -qa |grep qemu
qemu-kvm-debuginfo-0.12.1.2-2.204.el6.x86_64
qemu-img-0.12.1.2-2.204.el6.x86_64
qemu-kvm-tools-0.12.1.2-2.204.el6.x86_64
gpxe-roms-qemu-0.9.7-6.7.el6.noarch
qemu-kvm-0.12.1.2-2.204.el6.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Start a guest with qmp monitor
2. Input some wrong monitor cmd start with "query-" like this:
{"execute": "qmp_capabilities"}
{"execute": "query-a"}
  
Actual results:
The name in data of wrong cmd feed back is missing "query-".

Expected results:
The name in data of wrong cmd feed back should including all the cmd of input.

Additional info:

Comment 2 Luiz Capitulino 2011-11-18 12:00:09 UTC
The bug does exist, but it's very minor and I have no reports that it causes any impact to the stack. It's also fixed upstream, which means that it won't exist in rhel7.

Closing as WONTFIX, as I don't plan fixing this for rhel6.x.


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