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 984411 - the cdrom tray status is still 0 after executing "eject" if no media is presented under Q35
Summary: the cdrom tray status is still 0 after executing "eject" if no media is prese...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: John Snow
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-15 07:59 UTC by Sibiao Luo
Modified: 2014-11-27 01:38 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-27 01:38:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sibiao Luo 2013-07-15 07:59:46 UTC
Description of problem:
this issue has been fixed under pc-xx machine type(bug 771610), but still hit it under Q35.
Btw, if with a cdrom media attaching, the tray_open value can be changed correctly, refer to bug 984406.

Version-Release number of selected component (if applicable):
host info:
3.10.0-0.rc7.64.el7.x86_64
qemu-kvm-1.5.1-2.el7.x86_64
guest info:
3.10.0-0.rc7.64.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot guest *without* any media cdrom under Q35.
# /usr/libexec/qemu-kvm -S -M q35...
2.check the block info via HMP and QMP monitor.
(qemu) info block
drive-system-disk: removable=0 io-status=ok file=/home/RHEL-7.0-20130628.0-Server-x86_64.qcow3 ro=0 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0
drive-data-disk1: removable=0 io-status=ok file=/home/my-data-disk1.qcow3 ro=0 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0
ide1-cd0: removable=1 locked=0 tray-open=0 [not inserted]
floppy0: removable=1 locked=0 tray-open=0 [not inserted]
sd0: removable=1 locked=0 tray-open=0 [not inserted]
3.force to eject the media device.
(qemu) eject -f ide1-cd0
4.check the tray-open value via HMP or QMP monitor.
(qemu) info block
{"execute": "query-block"}

Actual results:
(qemu) info block
ide1-cd0: removable=1 locked=0 tray-open=0 [not inserted]
...
{"execute": "query-block"}
{"device": "ide1-cd0", "locked": false, "removable": true, "tray_open": false, "type": "unknown"}, {"device": "floppy0", "locked": false, "removable": true, "tray_open": false, "type": "unknown"}

Expected results:
the tray_open value should be: tray-open=1 & tray_open": true.

Additional info:

Comment 4 juzhang 2014-11-24 01:58:52 UTC
Hi Sluo,

Can you handle this issue?

Best Regards,
Junyi

Comment 6 Sibiao Luo 2014-11-27 01:38:40 UTC
Since this bug was moved to qemu-kvm-rhev which did not hit it any more according to my double checking in comment #5, so I closed this issue to CURRENTRELEASE, please correct me if any mistake, thanks.

Best Regards,
sluo


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