Bug 890011

Summary: flooding with 'scsi-generic: execute_command: read failed !' error if eject the pass-through SCSI CD-ROM
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Pavel Hrdina <phrdina>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: acathrow, areis, bsarathy, chayang, juzhang, kwolf, lnovich, michen, minovotn, mkenneth, pbonzini, phrdina, qzhang, sluo, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-0.12.1.2-2.380.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 06:27: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:

Description Sibiao Luo 2012-12-24 10:44:12 UTC
Description of problem:
If eject the pass-through SCSI CD-ROM in monitor, there is flooding with 'scsi-generic: execute_command: read failed !' errors, both linux and windows guest can hit it.
btw, emulated SCSI CD-ROM did not have this issue.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q qemu-kvm
2.6.32-348.el6.x86_64
qemu-kvm-0.12.1.2-2.348.el6.x86_64
guest info:
linux: kernel-2.6.32-348.el6.x86_64
windows: win7 64bit

How reproducible:
always

Steps to Reproduce:
1.insert a cdrom in host.
2.boot guest with pass-through SCSI CD-ROM.
eg:...-drive file=/dev/cdrom,if=none,id=drive-cd-disk,media=cdrom,format=raw,cache=none,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x6,id=scsi0 -device scsi-block,drive=drive-cd-disk,bus=scsi0.0,id=scsi_cd
(qemu) info block
drive-virtio-disk: removable=0 io-status=ok file=/mnt/windows_7_ultimate_sp1_x64.raw ro=0 drv=raw encrypted=0
drive-cd-disk: removable=1 locked=0 tray-open=0 io-status=ok file=/dev/cdrom ro=1 drv=raw encrypted=0
ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted]
floppy0: removable=1 locked=0 tray-open=0 [not inserted]
sd0: removable=1 locked=0 tray-open=0 [not inserted]
3.eject the CD-ROM.
(qemu) eject drive-cd-disk  

Actual results:
after step 3,
(qemu) eject drive-cd-disk
(qemu) scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
scsi-generic: execute_command: read failed !
...
(qemu) info block
drive-virtio-disk: removable=0 io-status=ok file=/mnt/RHEL6.4-20121212.1-Server-x86_64.raw ro=0 drv=raw encrypted=0
drive-cd-disk: removable=1 locked=0 tray-open=1 io-status=ok [not inserted]
ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted]
floppy0: removable=1 locked=0 tray-open=0 [not inserted]
sd0: removable=1 locked=0 tray-open=0 [not inserted]

Expected results:
Eject the pass-through SCSI CD-ROM should successfully without any problem.

Additional info:

Comment 2 Sibiao Luo 2012-12-24 11:03:27 UTC
I also tried the qemu-kvm-0.12.1.2-2.295.el6.x86_64, it also can hit it, so this issue not regression bug.

host info:
# uname -r && rpm -q qemu-kvm
2.6.32-348.el6.x86_64
qemu-kvm-0.12.1.2-2.295.el6.x86_64

Best Regards.
sluo

Comment 3 RHEL Program Management 2012-12-28 06:47:46 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 4 Paolo Bonzini 2013-01-09 13:34:24 UTC
Ejecting the pass-through SCSI CD-ROM should fail, but anyway yes---this is a bug.

Comment 16 errata-xmlrpc 2013-11-21 06:27:23 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-2013-1553.html

Comment 17 Red Hat Bugzilla 2023-09-14 01:39:46 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days