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 1025219

Summary: QMP: DEVICE_TRAY_MOVED with tray-open=true is emitted twice on floppy change
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Cole Robinson <crobinso>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: chayang, hhuang, juzhang, knoel, michen, mkenneth, pbonzini, qzhang, rbalakri, rpacheco, 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: 953070 Environment:
Last Closed: 2015-12-04 19:49:23 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:
Bug Depends On: 953070    
Bug Blocks:    

Comment 1 Sibiao Luo 2013-10-31 09:40:35 UTC
host info:
# uname -r && rpm -q qemu-kvm
2.6.32-425.el6.x86_64
qemu-kvm-0.12.1.2-2.415.el6.x86_64

e.g:...-drive file=/home/floopy1.vfd,if=none,id=drive-fdc0-0-0,readonly=on,format=raw -global isa-fdc.driveA=drive-fdc0-0-0

If eject the floppy and then change it without any problem.
->{"execute":"eject","arguments":{"device":"drive-fdc0-0-0","force":true}}
{"timestamp": {"seconds": 1383211608, "microseconds": 250781}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
{"return": {}}
->{"execute":"change","arguments":{"device":"drive-fdc0-0-0","target":"/home/floopy1.vfd"}}
{"timestamp": {"seconds": 1383211639, "microseconds": 472139}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
{"timestamp": {"seconds": 1383211639, "microseconds": 472330}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": false}}
{"return": {}}

But uf change the floppy directly, DEVICE_TRAY_MOVED with tray-open=true is emitted twice on floppy change.
->{"execute":"change","arguments":{"device":"drive-fdc0-0-0","target":"/home/floopy2.vfd"}}
{"timestamp": {"seconds": 1383212008, "microseconds": 942883}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
{"timestamp": {"seconds": 1383212008, "microseconds": 943886}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
{"timestamp": {"seconds": 1383212008, "microseconds": 944073}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": false}}
{"return": {}}

Best Regards,
sluo

Comment 2 RHEL Program Management 2013-11-03 10:04:59 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Sibiao Luo 2013-11-07 09:50:54 UTC
(In reply to Sibiao Luo from comment #1)
> host info:
> # uname -r && rpm -q qemu-kvm
> 2.6.32-425.el6.x86_64
> qemu-kvm-0.12.1.2-2.415.el6.x86_64
> 
> e.g:...-drive
> file=/home/floopy1.vfd,if=none,id=drive-fdc0-0-0,readonly=on,format=raw
> -global isa-fdc.driveA=drive-fdc0-0-0
> 
> If eject the floppy and then change it without any problem.
here has a mistake, the DEVICE_TRAY_MOVED with tray-open=true is emitted twice.
> ->{"execute":"eject","arguments":{"device":"drive-fdc0-0-0","force":true}}
> {"timestamp": {"seconds": 1383211608, "microseconds": 250781}, "event":
> "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
  first.
> {"return": {}}
> ->{"execute":"change","arguments":{"device":"drive-fdc0-0-0","target":"/home/
> floopy1.vfd"}}
> {"timestamp": {"seconds": 1383211639, "microseconds": 472139}, "event":
> "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
  second.
> {"timestamp": {"seconds": 1383211639, "microseconds": 472330}, "event":
> "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open":
> false}}
> {"return": {}}
> 
> But uf change the floppy directly, DEVICE_TRAY_MOVED with tray-open=true is
> emitted twice on floppy change.
> ->{"execute":"change","arguments":{"device":"drive-fdc0-0-0","target":"/home/
> floopy2.vfd"}}
> {"timestamp": {"seconds": 1383212008, "microseconds": 942883}, "event":
> "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
  first.
> {"timestamp": {"seconds": 1383212008, "microseconds": 943886}, "event":
> "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}}
  second.
> {"timestamp": {"seconds": 1383212008, "microseconds": 944073}, "event":
> "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open":
> false}}
> {"return": {}}
> 
> Best Regards,
> sluo

Comment 8 Cole Robinson 2015-12-04 19:49:23 UTC
This was closed as WONTFIX for RHEL7:

https://bugzilla.redhat.com/show_bug.cgi?id=953070#c4

So it doesn't make sense to track fixing in RHEL6 given this isn't really affecting users