Bug 983438

Summary: There should no "DEVICE_TRAY_MOVED" event for floppy device when do system_powerdown guest var HMP or QMP monitor
Product: Red Hat Enterprise Linux 7 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Ademar Reis <areis>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.0CC: acathrow, chayang, flang, hhuang, juzhang, knoel, lcapitulino, michen, qzhang, virt-maint, xfu
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: 2013-12-10 17:20:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sibiao Luo 2013-07-11 08:41:41 UTC
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 13:31:45 UTC
Pavel is working on this upstream, assigning to him.

Comment 3 Ademar Reis 2013-12-10 17:20:31 UTC
QMP/HMP will not be supported in RHEL7 and this bug is harmless. Closing as WONTFIX.