Bug 742480

Summary: Don't let locked flag prevent medium load
Product: Red Hat Enterprise Linux 6 Reporter: juzhang <juzhang>
Component: qemu-kvmAssignee: Markus Armbruster <armbru>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: acathrow, chayang, michen, mkenneth, sluo, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.206.el6 Doc Type: Bug Fix
Doc Text:
Cause: CD-ROM tray lock applied to open tray, which is wrong Consequence: Guest could not close an open, locked tray Fix: Apply only to closed tray Result: Guest can close an open tray always, even when locked
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 16:04:50 UTC Type: ---
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:    
Bug Blocks: 742458, 748554    

Description juzhang 2011-09-30 09:45:11 UTC
Description of problem:

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.193.el6.x86_64
guest kernel
#uname -r
2.6.32-195.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
In guest
1.eject /dev/sr0; 
2.eject -i on /dev/sr0; 
3.eject -t /dev/sr0
  
Actual results:
eject: CD-ROM tray close command failed: Input/output error

Expected results:
the tray should be closed

Additional info:

Comment 1 juzhang 2011-09-30 09:45:36 UTC
http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-September/msg00677.html

According to our test results. 
with this patch fix this issue.add this issue into tracker bug(bz742458)

Comment 7 Sibiao Luo 2011-10-19 07:56:27 UTC
Reproduced this issue on kernel-2.6.32-195.el6.x86_64, qemu-kvm-0.12.1.2-2.193.el6.x86_64. When I do "# eject -t /dev/sr0", the result is "eject: CD-ROM tray close command failed: Input/output error".
Verified it on the fixed version kernel-2.6.32-211.el6.x86_64, qemu-kvm-0.12.1.2-2.199.el6.x86_64, the tray was closed successfully.

steps:
1.start the RHEL 6.1 guest.
2.In guest, take actions as following:
# eject /dev/sr0
# eject -i on /dev/sr0
# eject -t /dev/sr0

Actual results:
The tray was closed successfully.

Above all, this issue has been fixed.

Comment 8 juzhang 2011-10-28 05:32:28 UTC
We also did virtual block and usb device functional testing,did not find block
or regression bugs.
https://tcms.engineering.redhat.com/run/29499/
https://tcms.engineering.redhat.com/run/29338/

Comment 11 Eduardo Habkost 2011-10-28 18:00:36 UTC
Moving to ON_QA because Errata Tool did not do it

Comment 13 Markus Armbruster 2011-11-18 09:52:58 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: CD-ROM tray lock applied to open tray, which is wrong
Consequence: Guest could not close an open, locked tray
Fix: Apply only to closed tray
Result: Guest can close an open tray always, even when locked

Comment 14 errata-xmlrpc 2011-12-06 16:04:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1531.html