Project

General

Profile

Bug #416

iscsit responses truncated to 1 PDU

Added by Aurélien ROUGEMONT about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
High
Category:
kernel
Start date:
2010-11-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

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

#1

Updated by Albert Lee about 10 years ago

  • Project changed from OpenIndiana Distribution to illumos gate
  • Category deleted (OS/Net (Kernel and Userland))
#2

Updated by Alexander Stetsenko almost 10 years ago

  • Category set to kernel
  • Assignee set to Alexander Stetsenko
#3

Updated by Alexander Stetsenko almost 10 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10
#4

Updated by Alexander Stetsenko almost 10 years ago

  • % Done changed from 10 to 90
#5

Updated by Albert Lee almost 10 years ago

  • Subject changed from comstar iscsi daemon iscsit to iscsit responses truncated to 1 PDU
#6

Updated by Alexander Stetsenko almost 10 years ago

  • Subject changed from iscsit responses truncated to 1 PDU to iscsit responses truncated to 1 PDU
#7

Updated by Alexander Stetsenko almost 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
#8

Updated by Alexander Stetsenko almost 10 years ago

Fixed in:

changeset: 13273:44d974917227
tag: tip
user: Alexander Stetsenko <>
date: Fri Jan 21 22:57:03 2011 +0300

description:
416 iscsit responses truncated to 1 PDU
Reviewed by:
Reviewed by:
Approved by:

modified:
usr/src/uts/common/io/comstar/port/iscsit/iscsit_text.c

#9

Updated by Antoine COETSIER almost 10 years ago

On behalf of Aurelien, thank you for your fix.

Also available in: Atom PDF