Bug 983438 - There should no "DEVICE_TRAY_MOVED" event for floppy device when do system_powerdown guest var HMP or QMP monitor
There should no "DEVICE_TRAY_MOVED" event for floppy device when do system_po...
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
7.0
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Ademar Reis
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-11 04:41 EDT by Sibiao Luo
Modified: 2013-12-10 12:20 EST (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-12-10 12:20:31 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Sibiao Luo 2013-07-11 04:41:41 EDT
Description of problem:
Met it by chance when do system_powerdown guest var HMP or QMP monitor, the QMP monitor will output "POWERDOWN" and "SHUTDOWN" event, but there also is output a "DEVICE_TRAY_MOVED" event for floppy device.

Version-Release number of selected component (if applicable):
host info:
3.10.0-1.el7.x86_64
qemu-kvm-1.5.1-2.el7.x86_64
seabios-1.7.2.2-2.el7.x86_64
guest info:
rhel7: 3.10.0-1.el7.x86_64
win8 64bit

How reproducible:
100%

Steps to Reproduce:
1.boot guest with QMP.
e.g:# /usr/libexec/qemu-kvm -S -M q35 -cpu SandyBridge -enable-kvm...-qmp tcp:0:4444,server,nowait
2.connect the QMP monitor.
$ telnet $qmp_server $port
3.do system_powerdown guest var HMP or QMP monitor
(qemu) system_powerdown | { "execute": "system_powerdown"}

Actual results:
after step 3,
{ "execute": "system_powerdown"}
{"return": {}}
{"timestamp": {"seconds": 1373527102, "microseconds": 986543}, "event": "POWERDOWN"}
{"timestamp": {"seconds": 1373527104, "microseconds": 124835}, "event": "SHUTDOWN"}
{"timestamp": {"seconds": 1373527104, "microseconds": 210026}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "floppy0", "tray-open": true}}
Connection closed by foreign host.

Expected results:
There should no "DEVICE_TRAY_MOVED" event for floppy device.

Additional info:
I test it in rhel6 host, like:
{ "execute": "system_powerdown" }
{"return": {}}
{"timestamp": {"seconds": 1373527506, "microseconds": 619133}, "event": "POWERDOWN"}
{"timestamp": {"seconds": 1373527514, "microseconds": 605827}, "event": "RTC_CHANGE", "data": {"offset": -2}}
{"timestamp": {"seconds": 1373527516, "microseconds": 89941}, "event": "SHUTDOWN"}
Connection closed by foreign host.
Comment 1 Luiz Capitulino 2013-07-11 09:31:45 EDT
Pavel is working on this upstream, assigning to him.
Comment 3 Ademar Reis 2013-12-10 12:20:31 EST
QMP/HMP will not be supported in RHEL7 and this bug is harmless. Closing as WONTFIX.

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