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 1021785 - the error message "scsi generic interface too old" is wrong more often than not
Summary: the error message "scsi generic interface too old" is wrong more often than not
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Fam Zheng
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1021788
TreeView+ depends on / blocked
 
Reported: 2013-10-22 06:10 UTC by Sibiao Luo
Modified: 2015-07-22 06:04 UTC (History)
10 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.449.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1021788 (view as bug list)
Environment:
Last Closed: 2015-07-22 06:04:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1275 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2015-07-20 17:49:16 UTC

Description Sibiao Luo 2013-10-22 06:10:37 UTC
Description of problem:
boot guest specified passthough iSCSI LUN with '-snapshot/snapshot=on', but QEMU will quit with prompt message "scsi-block: scsi generic interface too old", this prompt message is misleading for users who thought its command line wrong.
Add '-snapshot/snapshot=on' means that write to temporary files instead of disk image files, QEMU should give a correctly or friendly prompt message if QEMU not support or make it works well.

Version-Release number of selected component (if applicable):
host info:
2.6.32-424.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.414.el6.x86_64
seabios-0.6.1.2-28.el6.x86_64
guest info:
2.6.32-424.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.prepare a iSCSI LUN.
# ls -lh /dev/disk/by-path/ip-10.66.90.100\:3260-iscsi-iqn.2001-05.com.equallogic\:0-8a0906-0971f7d03-1dff49b26885073d-s2-sluo-172259-lun-0
lrwxrwxrwx. 1 root root 9 Oct 22 01:45 /dev/disk/by-path/ip-10.66.90.100:3260-iscsi-iqn.2001-05.com.equallogic:0-8a0906-0971f7d03-1dff49b26885073d-s2-sluo-172259-lun-0 -> ../../sdb
2.boot guest specified passthough iSCSI LUN with '-snapshot/snapshot=on'.
e.g1:...-drive file=/dev/disk/by-path/ip-10.66.90.100\:3260-iscsi-iqn.2001-05.com.equallogic\:0-8a0906-0971f7d03-1dff49b26885073d-s2-sluo-172259-lun-0,if=none,id=drive-data-disk,format=raw,aio=native -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi0 -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi0.0 *-snapshot*
qemu-kvm: -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi0.0: scsi-block: scsi generic interface too old
qemu-kvm: -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi0.0: Device 'scsi-block' could not be initialized
/etc/qemu-ifdown: could not launch network script
e.g2:...-drive file=/dev/disk/by-path/ip-10.66.90.100\:3260-iscsi-iqn.2001-05.com.equallogic\:0-8a0906-0971f7d03-1dff49b26885073d-s2-sluo-172259-lun-0,if=none,id=drive-data-disk,format=raw,aio=native,*snapshot=on* -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi0 -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi0.0
qemu-kvm: -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi0.0: scsi-block: scsi generic interface too old
qemu-kvm: -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi0.0: Device 'scsi-block' could not be initialized
/etc/qemu-ifdown: could not launch network script
3.

Actual results:
QEMU will quit with prompt message "scsi-block: scsi generic interface too old", this prompt message is misleading for users who thought its command line wrong.

Expected results:
QEMU should give a more correctly or friendly prompt message if QEMU not support it or make it works well.

Additional info:

Comment 1 Sibiao Luo 2013-10-22 06:14:11 UTC
BTW, also tried that it can make live snapshot from a passthrough iSCSI LUN to anther iSCSI LUN successfully.

Comment 2 Paolo Bonzini 2013-10-24 23:17:12 UTC
The command line is incorrect, so I am changing the subject.

Comment 3 Fam Zheng 2014-04-16 05:59:12 UTC
Posted a patch to upstream:

http://lists.nongnu.org/archive/html/qemu-devel/2014-04/msg02404.html

Comment 5 Jeff Nelson 2014-12-19 18:50:23 UTC
Fix included in qemu-kvm-0.12.1.2-2.449.el6

Comment 7 Sibiao Luo 2015-02-27 03:34:56 UTC
Verify this issue on qemu-kvm-0.12.1.2-2.454.el6.x86_64 with the same steps.

host info:
qemu-kvm-0.12.1.2-2.454.el6.x86_64

e.g:...-drive file=/dev/disk/by-path/ip-127.0.0.1:3260-iscsi-iqn.2014-06.com.example:server.target2-lun-1,if=none,id=drive-data-disk,format=raw,aio=native -device virtio-scsi-pci,bus=pci.0,addr=0x7,id=scsi1 -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi1.0 -snapshot
qemu-kvm: -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi1.0: cannot get SG_IO version number: Operation not supported.  Is this a SCSI device?
qemu-kvm: -device scsi-block,drive=drive-data-disk,id=data-disk,bus=scsi1.0: Device 'scsi-block' could not be initialized
/etc/qemu-ifdown: could not launch network script

Base on above, this issue has been fixed correctly, move to VERIFIED status, please correct me if any mistake, thanks.

Best Regards,
sluo

Comment 10 errata-xmlrpc 2015-07-22 06:04:06 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.

https://rhn.redhat.com/errata/RHBA-2015-1275.html


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