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 912219 - QMP monitor will hang or fail to prompt the error information at the first time after run wrong command
Summary: QMP monitor will hang or fail to prompt the error information at the first ti...
Keywords:
Status: CLOSED DUPLICATE of bug 580449
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-18 07:02 UTC by Sibiao Luo
Modified: 2013-02-18 13:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-18 13:09:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sibiao Luo 2013-02-18 07:02:20 UTC
Description of problem:
there is a bug 870703 in rhel 6.4, and also hit it in rhel7, but there are some difference. QMP monitor will hang or fail to prompt the error information at the first time after run wrong command.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q qemu-kvm
3.7.0-0.34.el7.x86_64
qemu-kvm-1.3.0-5.el7.x86_64
guest info:
qemu-guest-agent-1.3.0-5.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot guest with virtio-serial.
e.g:...-chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0,id=sr0
2.start qemu-ga server in guest.
3.connect the chardev socket in host side for sending commands. 
# nc -U /tmp/qga.sock

Actual results:
- scenario 1,
# nc -U /tmp/qga.sock
{"execute":"guest-ping"}
{"return": {}}
{"execute":"guest-ping"    <-----miss '}'
                           <-----monitor hang and cann't run any commands 
{"execute":"guest-ping"}
                           
Restart the qemu-ga server in guest, then it return to works fine.
# /usr/bin/qemu-ga restart
{"execute":"guest-ping"}
{"return": {}}

# nc -U /tmp/qga.sock
{"execute":"guest-ping"}{    <-----more '{'
{"return": {}}
{"execute":"guest-ping"}{  
                             <-----monitor hang but can run commands again
{"execute":"guest-ping"}
{"return": {}}

- scenario 2, it fail to prompt the error information at the first time.
# nc -U /tmp/qga.sock
{"execute":"guest-ping"}
{"return": {}}
{"execute":"guest-ping"}{"e   <-----more '{"e'
{"return": {}}
{"execute":"guest-ping"}{"e
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `ing'"}}
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `e'"}}
{"execute":"guest-ping"}   
{"return": {}}

# nc -U /tmp/qga.sock
{"execute":"guest-ping"}
{"return": {}}
{"execute":"guest-ping"}{"e   <-----more '{"e'
{"return": {}}
{"execute":"guest-ping"}{"e
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `ing'"}}
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `e'"}}
{"execute":"guest-ping"}{"e
{"return": {}}
{"execute":"guest-ping"}{"e
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `ing'"}}
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `e'"}}
{"execute":"guest-ping"}{"e
{"return": {}}
{"execute":"guest-ping"}{"e
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `ing'"}}
{"error": {"class": "GenericError", "desc": "Invalid JSON syntax"}}
{"error": {"class": "GenericError", "desc": "JSON parse error, invalid keyword `e'"}}
...

Expected results:


Additional info:

Comment 1 Luiz Capitulino 2013-02-18 13:09:16 UTC
Bug 580449 mentions the QMP server, but qemu-ga is also affected as it uses the same json parser.

*** This bug has been marked as a duplicate of bug 580449 ***


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