Frank,

> I've also found the following post which matches my problem exactly:
> http://www.snsforums.com/index.php?showtopic=255

I have found the problem and there are two defects.

First, the primary issue is that that OSX GlobalSAN tries to login  
into iSCSI Target without setting its iSCSI Initiator name as shown  
below by the parse_text failed message. The iSCSI standard clearly  
states the the InitiatorName must be specified before the TargetName  
so that ACLs, CHAP, RADIUS, etc., can validated between iSCSI  
Initiator and Target.


  1  84153                  queue_str:entry CONb   
----                         Start Poller                         ----
  1  84153                  queue_str:entry CONb  ---- XPT_UP(T4) ->  
IN_LOGIN
  1  84153                  queue_str:entry CONb  Available text size  
323
  1  84153                  queue_str:entry CONb     
SessionType              = Normal
  1  84153                  queue_str:entry CONb     
InitialR2T               = No
  1  84153                  queue_str:entry CONb     
HeaderDigest             = None
  1  84153                  queue_str:entry CONb     
DataDigest               = None
  1  84153                  queue_str:entry CONb     
MaxConnections           = 1
  1  84153                  queue_str:entry CONb     
ImmediateData            = Yes
  1  84153                  queue_str:entry CONb     
MaxOutstandingR2T        = 4
  1  84153                  queue_str:entry CONb     
DataPDUInOrder           = Yes
  1  84153                  queue_str:entry CONb     
DataSequenceInOrder      = Yes
  1  84153                  queue_str:entry CONb     
ErrorRecoveryLevel       = 0
  1  84153                  queue_str:entry CONb     
TargetName               = iqn.1986-03.com.sun:02:d379bced-d222-ea09-e3
  1  84153                  queue_str:entry CONb  Norm: parse_text  
failed
  1  84153                  queue_str:entry CONb  ---- IN_LOGIN(T7) ->  
FREE
  1  84153                  queue_str:entry CONb   
----                          End Poller                          ----

Second, the Solaris iSCSI Target is at fault for not checking for an  
unspecified iSCSI Initiator name, and depending on what operations  
happened previously within the target, the memory set aside for the  
InitiatorName could contain either:
        1).  NULL
        2). a pointer to non-existent memory
        3). a pointer to memory.

In cases 1 & 2, the iSCSI Target Daemon will dereference a NULL or  
pointer to non-existent memory, force a process core dump and restart.

It is worth noting that during a "SendTargets = All" request, the OSX  
GlobalSAN does set the iSCSI Initiator name.

  1  84153                  queue_str:entry CONc   
----                         Start Poller                         ----
  1  84153                  queue_str:entry CONc  ---- XPT_UP(T4) ->  
IN_LOGIN
  1  84153                  queue_str:entry SESd   
----                        Start Session                         ----
  1  84153                  queue_str:entry CONc  Available text size  
117
  1  84153                  queue_str:entry CONc     
SessionType              = Discovery
  1  84153                  queue_str:entry CONc     
HeaderDigest             = None
  1  84153                  queue_str:entry CONc     
DataDigest               = None
  1  84153                  queue_str:entry CONc     
InitiatorName            = iqn.2005-03.com.sns:mac-dhcp-ubur01-168-198.
  1  84153                  queue_str:entry CONc  ---- IN_LOGIN(T5) ->  
LOGGED_IN
  1  84153                  queue_str:entry CONc  PDU(Text Message)
  1  84153                  queue_str:entry CONc  Available text size 16
  1  84153                  queue_str:entry CONc     
SendTargets              = All
  1  84153                  queue_str:entry CONc  Text PDU:  
flags=0x80, ttt=0xffffffff, len=0
  1  84153                  queue_str:entry CONc  PDU(Logout Request)
  1  84153                  queue_str:entry CONc  ---- LOGGED_IN(T9) - 
 > IN_LOGOUT
  1  84153                  queue_str:entry SESd  Starting shutdown
  1  84153                  queue_str:entry CONc   
----                          End Poller                          ----


Jim


>
>
> I pointed the poster back to this discussion...
> -- 
> This message posted from opensolaris.org
> _______________________________________________
> storage-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/storage-discuss

_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to