Hide Forgot
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:
BTW, also tried that it can make live snapshot from a passthrough iSCSI LUN to anther iSCSI LUN successfully.
The command line is incorrect, so I am changing the subject.
Posted a patch to upstream: http://lists.nongnu.org/archive/html/qemu-devel/2014-04/msg02404.html
Fix included in qemu-kvm-0.12.1.2-2.449.el6
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
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