Bug 742469 - Drives can not be locked without media present
Summary: Drives can not be locked without media present
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Markus Armbruster
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 742458 748554
TreeView+ depends on / blocked
 
Reported: 2011-09-30 09:14 UTC by juzhang
Modified: 2013-01-10 00:24 UTC (History)
6 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.206.el6
Doc Type: Bug Fix
Doc Text:
Cause: CD-ROM refused to let the guest lock an empty tray Consequence: Guest could not lock empty tray Fix: Permit locking regardless of media presence Result: Guest can lock empty tray
Clone Of:
Environment:
Last Closed: 2011-12-06 16:04:41 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1531 0 normal SHIPPED_LIVE Moderate: qemu-kvm security, bug fix, and enhancement update 2011-12-06 01:23:30 UTC

Description juzhang 2011-09-30 09:14:02 UTC
Description of problem:
Boot guest without media present
in guest.
# eject -i on /dev/sr0
(qemu) info block
.................
drive-ide0-1-0: type=cdrom removable=1 locked=0 [not inserted]

the locked is still as 0


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:
1.boot guest without media present
-drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0
2.(qemu) info block
..................
drive-ide0-1-0: type=cdrom removable=1 locked=0 [not inserted]

3.In guest
 eject -i on /dev/sr0
CD-Drive may NOT be ejected with device button

4.(qemu) info block
..................
drive-ide0-1-0: type=cdrom removable=1 locked=0 [not inserted]

  
Actual results:
after step4,locked=0

Expected results:
locked=1

Additional info:

Comment 1 juzhang 2011-09-30 09:15:54 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 juzhang 2011-10-20 09:44:02 UTC
Verified with qemu-kvm-0.12.1.2-2.199.el6,the steps are as same as comment0.

Result
locked=1

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

Comment 13 Markus Armbruster 2011-11-18 10:03:57 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 refused to let the guest lock an empty tray
Consequence: Guest could not lock empty tray
Fix: Permit locking regardless of media presence
Result: Guest can lock empty tray

Comment 14 errata-xmlrpc 2011-12-06 16:04:41 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


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