Bug #416
closediscsit responses truncated to 1 PDU
100%
Description
When you create many iSCSI targets (more than 70 in my case) with itadm the iscsi linux initiator. The linux initiator gets a truncated answer from the target, leading to a denied send targets discovery.
I have also tried with the legacy opensolaris daemon (iscsitgtd), i stopped after creating 512 IQN, and everything was working perfectly fine.
For three reasons, i am quite sure it comes from the target iscsit (comstar):
- iscsiadm says : discovery session to 10.111.140.1:3260 received unexpected opcode 0x3f (0x3f is an opcode that means REJECT from target side)
- http://opensolaris.org/jive/thread.jspa?threadID=128046&tstart=0
- the PDUs are truncated after a specific size :
iscsiadm: > TargetName=iqn.1986-03.com.sun:02:7d714a54-50df-6fe2-b175-97248e121305 iscsiadm: > TargetAddress=10.111.140.1:3260,1 iscsiadm: > TargetAddress=10.111.141.1:3260,1 iscsiadm: > TargetAddress=10.254.254.86:3260,1 iscsiadm: > TargetName=iqn.1986-03.com.sun:02:7edae6c3-e0c0-e3ea-e511-b9b4dfd10d64 iscsiadm: > TargetAddress=10.111.140.1:3260,1 iscsiadm: > TargetAddress=10.111.141.1:3260,1 iscsiadm: > TargetAddress=10.254.254.86:3260,1 iscsiadm: > TargetName=iqn
To recreate the bug :
On opensolaris server (any version including b148 with comstar running) :
for i in `seq 100`; do itadm create-target; done;
On any linux debian iscsi initiator (any available debian version of open-iscsi) :
# /usr/bin/iscsiadm --mode discovery --type sendtargets --portal 10.111.140.1:3260 iscsiadm: discovery session to 10.111.140.1:3260 received unexpected opcode 0x3f iscsiadm: discovery login to 10.111.140.1 rejected: initiator error (02/0b), non-retryable, giving up iscsiadm: Could not perform SendTargets discovery.
PS: for destroying EVERY iqn from this test server here's a small hint :
for i in `itadm list-target |awk '{print($1);}' |grep iqn|xargs`;do itadm delete-target -f $i ; done
Updated by Albert Lee over 11 years ago
- Project changed from OpenIndiana Distribution to illumos gate
- Category deleted (
OS/Net (Kernel and Userland))
Updated by Alexander Stetsenko over 11 years ago
- Category set to kernel
- Assignee set to Alexander Stetsenko
Updated by Alexander Stetsenko over 11 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
Updated by Albert Lee over 11 years ago
- Subject changed from comstar iscsi daemon iscsit to iscsit responses truncated to 1 PDU
Updated by Alexander Stetsenko over 11 years ago
- Subject changed from iscsit responses truncated to 1 PDU to iscsit responses truncated to 1 PDU
Updated by Alexander Stetsenko over 11 years ago
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
Updated by Alexander Stetsenko over 11 years ago
Fixed in:
changeset: 13273:44d974917227
tag: tip
user: Alexander Stetsenko <ams@nexenta.com>
date: Fri Jan 21 22:57:03 2011 +0300
description:
416 iscsit responses truncated to 1 PDU
Reviewed by: eric.schrock@delphix.com
Reviewed by: garrett@nexenta.com
Approved by: garrett@nexenta.com
modified:
usr/src/uts/common/io/comstar/port/iscsit/iscsit_text.c
Updated by Antoine COETSIER about 11 years ago
On behalf of Aurelien, thank you for your fix.