Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 725981

Summary: QMP: "info history" with "human-monitor-command" can not return the historical used commands
Product: Red Hat Enterprise Linux 6 Reporter: Qunfang Zhang <qzhang>
Component: qemu-kvmAssignee: Luiz Capitulino <lcapitulino>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.2CC: juzhang, michen, mkenneth, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-12 07:00:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Qunfang Zhang 2011-07-27 08:36:25 UTC
Description of problem:
Input some commands in QMP and then check the history used commands by the following command, the used commands can not be returned:
{"execute":"human-monitor-command","arguments":{"command-line":"info history"}}

Version-Release number of selected component (if applicable):
kernel-2.6.32-171.el6.x86_64
qemu-kvm-0.12.1.2-2.172.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Start a guest with QMP.
/usr/libexec/qemu-kvm -m 8G -smp 4 -cpu cpu64-rhel6,+x2apic -usbdevice tablet -drive file=RHEL-Server-6.1-64-virtio.qcow2,format=qcow2,if=none,id=drive-ide0-0-0,werror=stop,rerror=stop,cache=none -device virtio-blk-pci,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,id=hostnet0,script=/etc/qemu-ifup -device e1000,netdev=hostnet0,mac=00:10:1a:20:06:28,bus=pci.0,addr=0x6 -boot c -uuid bea9c85e-0a47-4030-979d-5d94bb3d6161 -rtc-td-hack -no-kvm-pit-reinjection -monitor stdio -qmp tcp:0:4444,server,nowait -name win7-64-balloon -vnc :10 -device virtio-balloon-pci,bus=pci.0,id=balloon0

2.Input some QMP commands 

{"execute":"qmp_capabilities"}
{"return": {}}
{"execute":"query-status"}
{"return": {"singlestep": false, "running": true}}
{"execute":"query-kvm"}
{"return": {"enabled": true, "present": true}}

3.Check the historical used commands:
{"execute":"human-monitor-command","arguments":{"command-line":"info history"}}
{"return": {}}

  
Actual results:
The used command like "query-status" and "query-kvm" do not return.

Expected results:
Should display history commands after step3.

Additional info:

Comment 2 Dor Laor 2011-09-12 07:00:34 UTC
Not sure it worth fixing since the HMP is not supported long term

Comment 3 Luiz Capitulino 2011-09-12 13:02:38 UTC
The "info history" command is HMP-only, it doesn't make sense on QMP, even when using HMP passhthrough.