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 871321 - tray-open should be 1 after eject cdrom inside guest
Summary: tray-open should be 1 after eject cdrom inside guest
Keywords:
Status: CLOSED DUPLICATE of bug 771610
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-30 08:42 UTC by Qunfang Zhang
Modified: 2012-11-19 21:23 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-19 21:23:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qunfang Zhang 2012-10-30 08:42:19 UTC
Description of problem:
Eject the cdrom from guest, 'info block' in qemu monitor still tells 'tray-open=0'. This behaviour is different with host. Eject a cdrom inside host (execute #eject command in terminal) can open the physical cdrom tray.

Version-Release number of selected component (if applicable):
kernel-2.6.32-337.el6.x86_64 (both host and guest)
qemu-kvm-0.12.1.2-2.331.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Boot a rhel6.4 guest with a local iso file
/usr/libexec/qemu-kvm -M rhel6.4.0 -cpu Penryn -enable-kvm -m 2048 -smp 2,maxcpus=2,sockets=2,cores=1,threads=1 -enable-kvm -name rhel6.4 -uuid b6d6f013-2940-4124-946a-13da591a3fba -k en-us -rtc base=localtime,clock=host,driftfix=slew -no-kvm-pit-reinjection -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device usb-tablet,id=input0 -drive file=/mnt/rhel6.4-64.qcow2,if=none,id=disk0,format=qcow2,werror=stop,rerror=stop,aio=native -device virtio-scsi-pci,id=bus1,bus=pci.0,addr=0x3 -device scsi-hd,wwn=0x5000c50015ea71ad,ver=qzhang,bus=bus1.0,drive=disk0,id=virtio-scsi-pci0 -drive file=/home/boot.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device virtio-scsi-pci,id=bus2,bus=pci.0,addr=0x4 -device scsi-cd,bus=bus2.0,wwn=0x5000c50015ea7100,drive=drive-ide0-1-0,id=virtio-scsi-pci1 -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1A:1A:4A:25:28,bus=pci.0,addr=0x5 -netdev tap,id=hostnet1 -device e1000,netdev=hostnet1,id=net1,mac=00:1A:1A:4A:25:20,bus=pci.0,addr=0x6 -netdev tap,id=hostnet2 -device rtl8139,netdev=hostnet2,id=net2,mac=00:1A:1A:4A:25:00,bus=pci.0,addr=0x7 -monitor stdio -qmp tcp:0:6666,server,nowait -chardev socket,path=/tmp/isa-serial,server,nowait,id=isa1 -device isa-serial,chardev=isa1,id=isa-serial1 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x8 -chardev socket,id=charchannel0,path=/tmp/serial-socket,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,path=/tmp/foo,server,nowait,id=foo -device virtconsole,chardev=foo,id=console0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x9 -vnc :10 -k en-us -boot menu=on -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0


2. (qemu) info block
......
drive-ide0-1-0: removable=1 locked=0 tray-open=0 io-status=ok file=/home/boot.iso ro=1 drv=raw encrypted=0
......

3. Inside guest: #eject /dev/sr1

4. (qemu) info block
......
drive-ide0-1-0: removable=1 locked=0 tray-open=0 io-status=ok file=/home/boot.iso ro=1 drv=raw encrypted=0
......

Actual results:
After eject the cdrom, the media is umounted inside guest, but the 'tray-open' status is still 0.

Expected results:
The tray-open status should be 1. (Should have same behaviour with host)


Additional info:

Comment 2 Ademar Reis 2012-11-14 03:05:13 UTC
Looks like a dupe of Bug 771610, which will be fixed in RHEL7 only. Pavel, please confirm if it's the same issue.

Comment 3 Pavel Hrdina 2012-11-16 14:30:05 UTC
Yes, this is a duplicate of Bug 771610 and it has been already fixed in upstream.

Comment 4 Ademar Reis 2012-11-19 21:23:34 UTC
We won't be able to fix this on RHEL6 due to limited capacity. It's fixed upstream and therefore will be OK in RHEL7.

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


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