From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from IMSVA.IN.MEGATRENDS.COM (venus.amiindia.co.in [111.93.197.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7E9CF81F5C for ; Mon, 27 Feb 2017 12:03:40 -0800 (PST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6D0A78206E; Tue, 28 Feb 2017 01:35:04 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6055C82069; Tue, 28 Feb 2017 01:35:04 +0530 (IST) Received: from webmail.amiindia.co.in (venus2.in.megatrends.com [10.0.0.7]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Tue, 28 Feb 2017 01:35:04 +0530 (IST) Received: from VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5]) by Venus2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b%14]) with mapi id 14.03.0248.002; Tue, 28 Feb 2017 01:33:34 +0530 From: Santhapur Naveen To: "Ye, Ting" , "edk2-devel@lists.01.org" Thread-Topic: ISCSI says "Session Doesn't Exist" Thread-Index: AdKOo1PNr5oKc1KtQkGfr5/iCtjCdwCKemiwABmDlok= Date: Mon, 27 Feb 2017 20:03:33 +0000 Message-ID: <625A2455CC232F40B0F38F05ACED6D978C4E2EFB@VENUS1.in.megatrends.com> References: <625A2455CC232F40B0F38F05ACED6D978C4E1F3B@VENUS1.in.megatrends.com>, In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.93.16] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-22912.002 X-TM-AS-Result: No--11.842-5.0-31-10 X-imss-scan-details: No--11.842-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-22912.002 X-TMASE-Result: 10--11.842400-10.000000 X-TMASE-MatchedRID: byfwvk+IcRn/q02KBeynnp1U1lojafr/7FrBs0XlQc1TJ57A8zCP9IXH 3nxnrBrtZkA3DiLYWeBG+R/+80ybQS2DV9S/r9yelUgQqGVMqmxdxx6WRf+5sFmmz7LVVfOpqKE gwCKqpo4GUYoIEbrLC7MsKdTPcwdjwuSjRTy/snR05zsoB1UKTtxWLypmYlZz+3n3Z6rbGhOomW jmVBlZqp0EopZ3V99yEMPYLJ3Ibr3H4JN4GsPAjkQL6IUiVKSPsEf8CpnIYtlD9iPiuXvzgSOGa xJXnUqczEoG29tTLa1pM0zUlLKnQxNmUW1dq3NxnbUZkYTzXIZAq6/y5AEOOtFRudYUqHDI+5i5 n31cQPGzEn5HMUKUxNg68hfLnE/Vdi4y/Ho0/wC1PiMh4ZF39XWT6A/Vdqa0myiLZetSf8l9j2G wzTE3vSq2rl3dzGQ1zAYCMArxFLAP8WVW18moe4jQhlK7EuU/5FvfBF+pz1RWdDDA0umZ602Yms qtphnu X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-0 Subject: Re: ISCSI says "Session Doesn't Exist" X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 20:03:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Ting,=0A= =0A= I've configured iSCSI target in Windows Server 2012. And the procedure is s= imilar as in https://blogs.technet.microsoft.com/filecab/2012/05/21/introdu= ction-of-iscsi-target-in-windows-server-2012/=0A= Please let me know if I had to make any changes to my iSCSI server.=0A= =0A= Thank you,=0A= Naveen=0A= ________________________________________=0A= From: Ye, Ting [ting.ye@intel.com]=0A= Sent: Monday, February 27, 2017 1:23 PM=0A= To: Santhapur Naveen; edk2-devel@lists.01.org=0A= Subject: RE: ISCSI says "Session Doesn't Exist"=0A= =0A= Hi Naveen,=0A= =0A= According to the table you shared (defined in RFC 3720), it seems when TSIH= is ZERO, the target should not fail the login with "session does not exist= ".=0A= =0A= +------------------------------------------------------------------+=0A= |new | zero | any | instantiate a new session |=0A= +------------------------------------------------------------------+=0A= |existing | zero | any | do session reinstatement |=0A= | | | | (see section 5.3.5) |=0A= +------------------------------------------------------------------+=0A= =0A= I checked the latest code in NetworkPkg/IScsiDxe, the Tsih is always set to= ZERO in IScsiSessionInit. The immediate reset will also trigger driver bin= ding start so IScsiSessionInit will be executed.=0A= =0A= It seems to me your iSCSI target does not comply with the rules defined in = RFC documentation. If possible, would you please tell us which iSCSI target= are you using?=0A= =0A= Thanks,=0A= Ting=0A= =0A= -----Original Message-----=0A= From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Sant= hapur Naveen=0A= Sent: Friday, February 24, 2017 9:59 PM=0A= To: edk2-devel@lists.01.org=0A= Subject: [edk2] ISCSI says "Session Doesn't Exist"=0A= =0A= Hello all,=0A= =0A= I've a question about IScsi and any suggestions would be helpful=0A= =0A= [Issue Summary]=0A= If I add an ISCSI attempt and on the next reboot, a connection will be esta= blished in between the initiator and the target. Till now, it is fine. Now = if I do an immediate reset with in 20 seconds, on the next boot, the initia= tor is trying to establish a session, but the target rejects saying "Sessio= n does not exist". If I reset after 20 seconds or so, the connection would = have been established with the same login details.=0A= =0A= To dive deeper, I've checked the RFC documentation on this and found the fo= llowing information. But when I checked the wireshark capture, I found my T= SIH is ZERO even for the immediate session. If I want to make my immediate = session also into a successful one, what should I be doing? I'm aware that = there's a function available IScsiSessionAbort(). Would it help me or provi= de your suggestions to get me going.=0A= =0A= =0A= +------------------------------------------------------------------+=0A= =0A= |ISID | TSIH | CID | Target action |=0A= =0A= +------------------------------------------------------------------+=0A= =0A= |new | non-zero | any | fail the login |=0A= =0A= | | | | ("session does not exist") |=0A= =0A= +------------------------------------------------------------------+=0A= =0A= |new | zero | any | instantiate a new session |=0A= =0A= +------------------------------------------------------------------+=0A= =0A= |existing | zero | any | do session reinstatement |=0A= =0A= | | | | (see section 5.3.5) |=0A= =0A= +------------------------------------------------------------------+=0A= =0A= |existing | non-zero | new | add a new connection to |=0A= =0A= | | existing | | the session |=0A= =0A= +------------------------------------------------------------------+=0A= =0A= |existing | non-zero |existing| do connection reinstatement|=0A= =0A= | | existing | | (see section 5.3.4) |=0A= =0A= +------------------------------------------------------------------+=0A= =0A= |existing | non-zero | any | fail the login |=0A= =0A= | | new | | ("session does not exist") |=0A= =0A= +------------------------------------------------------------------+=0A= =0A= =0A= Thanks,=0A= Naveen=0A= _______________________________________________=0A= edk2-devel mailing list=0A= edk2-devel@lists.01.org=0A= https://lists.01.org/mailman/listinfo/edk2-devel=0A=