Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
(In reply to Sibiao Luo from comment #0)
> Description of problem:
> This bug was found during verified bug 1032358.
> Configured a libiscsi disk with chap authentication in iscsi target server
> and iscsi initator, then assigned (scsi-hd/ide/virtio-blk interface) it to a
> guest with chap authentication, the libiscsi disk fail to be detected in
> guest correctly.
And if powerdown guest, the qemu monitor will prompt many block I/O error messages as following:
guest ] # poweroff
(qemu) qemu-kvm: Failed to sync10 data on iSCSI lun. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_OPERATION_CODE(0x2000)
block I/O error in device 'drive-disk': Input/output error (5)
qemu-kvm: Failed to sync10 data on iSCSI lun. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_OPERATION_CODE(0x2000)
block I/O error in device 'drive-disk': Input/output error (5)
qemu-kvm: Failed to sync10 data on iSCSI lun. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_OPERATION_CODE(0x2000)
block I/O error in device 'drive-disk': Input/output error (5)
qemu-kvm: Failed to sync10 data on iSCSI lun. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_OPERATION_CODE(0x2000)
qemu-kvm: Failed to sync10 data on iSCSI lun. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_OPERATION_CODE(0x2000)
/etc/qemu-ifdown: could not launch network script
Best Regards,
sluo
I cannot reproduce this with
libiscsi-1.9.0-6.el7.x86_64
qemu-kvm-1.5.3-47.el7.x86_64
I suspect that you simply need to use /1 instead of /0 at the end of the iscsi URL.
Can you try installing libiscsi-utils and doing
iscsi-ls -s \
iscsi://redhat:redhat.9.107:3260/iqn.2008-09.com.example:server.target2
(In reply to Paolo Bonzini from comment #3)
> I cannot reproduce this with
>
> libiscsi-1.9.0-6.el7.x86_64
> qemu-kvm-1.5.3-47.el7.x86_64
>
> I suspect that you simply need to use /1 instead of /0 at the end of the
> iscsi URL.
yes, use /1 is OK, but /0 will meet bug 1067784(qemu-kvm: block.c:850: bdrv_open_common: Assertion `bs->request_alignment != 0' failed. Aborted (core dumped)).
# uname -r && rpm -q qemu-kvm && rpm -q libiscsi
3.10.0-86.el7.x86_64
qemu-kvm-1.5.3-47.el7.x86_64
libiscsi-1.9.0-6.el7.x86_64
e.g1:...-drive file=iscsi://10.66.9.107/iqn.2008-09.com.example:server.target2/1,if=none,id=drive-data-disk,format=raw,cache=none,aio=native -iscsi id=iqn1,user=redhat,password=redhat -device virtio-scsi-pci,id=scsi1,bus=pci.0,addr=0x7 -device scsi-hd,drive=drive-data-disk,bus=scsi1.0,id=data-disk
Above e.g1 is ok which can boot up guest successfully and detect the libiscsi disk in guest correctly.
e.g2:...-drive file=iscsi://10.66.9.107/iqn.2008-09.com.example:server.target2/0,if=none,id=drive-data-disk,format=raw,cache=none,aio=native -iscsi id=iqn1,user=redhat,password=redhat -device virtio-scsi-pci,id=scsi1,bus=pci.0,addr=0x7 -device scsi-hd,drive=drive-data-disk,bus=scsi1.0,id=data-disk
Above e.g2 meet bug 1067784 which qemu-kvm: block.c:850: bdrv_open_common: Assertion `bs->request_alignment != 0' failed. Aborted (core dumped).
> Can you try installing libiscsi-utils and doing
>
> iscsi-ls -s \
> iscsi://redhat:redhat.9.107:3260/iqn.2008-09.com.example:server.
> target2
# iscsi-ls -s iscsi://redhat:redhat.9.107:3260/iqn.2008-09.com.example:server.target2
Target:iqn.2008-09.com.example:server.target2 Portal:10.66.9.107:3260,1
Lun:0 Type:STORAGE_ARRAY_CONTROLLER
Lun:1 Type:DIRECT_ACCESS (Size:99M)
Lun:2 Type:DIRECT_ACCESS (Size:99M)