Re: [storm] SPC-2 reserve/release: Proposed text - version 4

Mallikarjun Chadalapaka <cbm@chadalapaka.com> Wed, 26 September 2012 01:39 UTC

Return-Path: <cbm@chadalapaka.com>
X-Original-To: storm@ietfa.amsl.com
Delivered-To: storm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 846E611E808D for <storm@ietfa.amsl.com>; Tue, 25 Sep 2012 18:39:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id POvlj4Aqx6ej for <storm@ietfa.amsl.com>; Tue, 25 Sep 2012 18:39:10 -0700 (PDT)
Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe002.messaging.microsoft.com [213.199.154.205]) by ietfa.amsl.com (Postfix) with ESMTP id E056E11E808A for <storm@ietf.org>; Tue, 25 Sep 2012 18:39:09 -0700 (PDT)
Received: from mail43-am1-R.bigfish.com (10.3.201.253) by AM1EHSOBE010.bigfish.com (10.3.204.30) with Microsoft SMTP Server id 14.1.225.23; Wed, 26 Sep 2012 01:39:08 +0000
Received: from mail43-am1 (localhost [127.0.0.1]) by mail43-am1-R.bigfish.com (Postfix) with ESMTP id 933B7C00C9 for <storm@ietf.org>; Wed, 26 Sep 2012 01:39:08 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:157.56.240.117; KIP:(null); UIP:(null); IPV:NLI; H:BL2PRD0610HT004.namprd06.prod.outlook.com; RD:none; EFVD:NLI
X-SpamScore: -26
X-BigFish: PS-26(zz9371I542M4015Id6f1izz1202h1d1ah1d2ahzz1033IL8275dhz2fh2a8h668h839hd25hf0ah107ah1288h12a5h12a9h12bdh137ah13b6h1155h)
Received-SPF: pass (mail43-am1: domain of chadalapaka.com designates 157.56.240.117 as permitted sender) client-ip=157.56.240.117; envelope-from=cbm@chadalapaka.com; helo=BL2PRD0610HT004.namprd06.prod.outlook.com ; .outlook.com ;
Received: from mail43-am1 (localhost.localdomain [127.0.0.1]) by mail43-am1 (MessageSwitch) id 1348623546773899_13573; Wed, 26 Sep 2012 01:39:06 +0000 (UTC)
Received: from AM1EHSMHS012.bigfish.com (unknown [10.3.201.229]) by mail43-am1.bigfish.com (Postfix) with ESMTP id AF8131E022F; Wed, 26 Sep 2012 01:39:06 +0000 (UTC)
Received: from BL2PRD0610HT004.namprd06.prod.outlook.com (157.56.240.117) by AM1EHSMHS012.bigfish.com (10.3.207.112) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 26 Sep 2012 01:39:01 +0000
Received: from BL2PRD0610MB361.namprd06.prod.outlook.com ([169.254.12.31]) by BL2PRD0610HT004.namprd06.prod.outlook.com ([10.255.101.39]) with mapi id 14.16.0190.008; Wed, 26 Sep 2012 01:39:00 +0000
From: Mallikarjun Chadalapaka <cbm@chadalapaka.com>
To: "Black, David" <david.black@emc.com>, "storm@ietf.org" <storm@ietf.org>
Thread-Topic: SPC-2 reserve/release: Proposed text - version 4
Thread-Index: Ac2bNKguGPJW+zTbTTC2uDGdWEV2OAAGl/vwAAGNYXAAA3tHQAAIrqHw
Date: Wed, 26 Sep 2012 01:39:00 +0000
Message-ID: <E160851FCED17643AE5F53B5D4D0783A451DBBB6@BL2PRD0610MB361.namprd06.prod.outlook.com>
References: <8D3D17ACE214DC429325B2B98F3AE7120DE79578@MX15A.corp.emc.com>
In-Reply-To: <8D3D17ACE214DC429325B2B98F3AE7120DE79578@MX15A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [131.107.174.24]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: chadalapaka.com
Subject: Re: [storm] SPC-2 reserve/release: Proposed text - version 4
X-BeenThere: storm@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Storage Maintenance WG <storm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/storm>, <mailto:storm-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/storm>
List-Post: <mailto:storm@ietf.org>
List-Help: <mailto:storm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/storm>, <mailto:storm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Sep 2012 01:39:11 -0000

Looks good to me overall. Two minor comments:

1) For 4.4.3.1, I have replaced the current sentence with the following one (instead of the proposed):

That is, it should reinstate the session via iSCSI session reinstatement (Section 6.3.5) or continue via session continuation (Section 6.3.6).

2) For proposed new text, I have tweaked the version 4 sentence below, keeping the existing implementations in view:

VERSION 4:
The Time2Wait and Time2Retain
      timeout values (see Section 7.55) apply to retention of reserve/release
      reservation state after iSCSI session failure because that state
      is part of the I_T Nexus state.

VERSION 5:
Instead, implementations are strongly encouraged to apply the 
      Time2Wait and Time2Retain timeout values (see Section 7.5) 
      to manage retention of reserve/release reservation state after 
     iSCSI session failure because that state is part of the I_T nexus state.


Thanks.

Mallikarjun


-----Original Message-----
From: storm-bounces@ietf.org [mailto:storm-bounces@ietf.org] On Behalf Of Black, David
Sent: Tuesday, September 25, 2012 2:39 PM
To: storm@ietf.org
Subject: [storm] FW: SPC-2 reserve/release: Proposed text - version 4

version 4 changes:

More changes for Mallikarjun's comments, mostly a rewrite of the first additional caveat bullet.  I've chosen not to reference Annex B of
SPC-4 as that seems a bit far afield for a SCSI transport standard like iSCSI.

version 3 changes:

Responding to Mallikarjun's comments (plus some more edits) -

> 1) IMHO, opening sentence of "I_T nexus state includes reservation state"
> is a little too broad,

I removed that sentence, removed I_T Nexus from new section title and tweaked the persistent reservation text to talk about state in general as opposed to I_T Nexus state in particular.

> 2) Hard reset is not an LU reset - it is either an iSCSI Target Warm 
> Reset, or (more likely) an iSCSI Target Cold Reset. In either case, 
> any of the three resets should clear the reserve/release state.

I removed the word "hard" - as you noted, an LU reset is sufficient to remove a reserve/release reservation.

> 3) Should use Time2Retain+Time2Wait, not Default Time2Wait

Brilliant minds think alike - I got to that one in version 2 ;-).

> 4) Session recovery does not necessarily preserve the I_T nexus state 
> (recovery may not occur within Time2Wait+Time2Retain, and may not use 
> the same ISID when it occurs), but session reinstatement and session 
> continuation certainly should.

I changed "session recovery" to "session reinstatement".

> 5) Should articulate the underlying linkage between Time2Retain (an 
> iSCSI concept), and the reserve/release state (a SCSI state).

I believe I also got to that one in version 2.

version 2 changes:

I moved a paragraph break in response to Ralph's comments, and rewrote the first additional consideration to reference the connection timeout values in general.  I also found some minor problems that need correction in Section 4.6.3.3 (see end of this message).

--- version 4 follows ---

<WG chair hat off>

Here's an initial attempt to propose text to deal with the reserve/ release topic in the consolidated iSCSI draft.  Please comment, correct, suggest edits, etc.

The new text would be a new section 4.4.3.2 that would follow 4.4.3.1:

4.4.3.1. I_T Nexus State

  Certain nexus relationships contain an explicit state (e.g.,
  initiator-specific mode pages) that may need to be preserved by
  the device server [SAM2] in a logical unit through changes or
  failures in the iSCSI layer (e.g., session failures). In order for
  that state to be restored, the iSCSI initiator should reestablish
  its session (re-login) to the same Target Portal Group using the
  previous ISID. That is, it should perform session recovery as
  described in Chapter 6. This is because the SCSI initiator port
  identifier and the SCSI target port identifier (or relative target
  port) form the datum that the SCSI logical unit device server uses
  to identify the I_T nexus.

-------------------------------

First, for clarity, the following change should be made in the above 4.4.3.1 text to better identify the recovery mechanism:

OLD
  That is, it should perform session recovery as
  described in Chapter 6.
NEW
  That is, it should recover the session via connection
  reinstatement as described in Section 6.3.4.
END

I believe that a lower-case "should" remains appropriate for this text.

-----------------------------------

NEW TEXT (second draft):

4.4.3.2. Reservations

  There are two reservation management methods defined in the SCSI
  standards, reserve/release reservations, based on the RESERVE and
  RELEASE commands [SPC2], and persistent reservations, based on the
  PERSISTENT RESERVE IN and PERSISTENT RESERVE OUT commands [SPC3].
  Reserve/release reservations are obsolete [SPC3] and SHOULD NOT be
  used; persistent reservations SHOULD be used instead.

  State for persistent reservations is required to persist
  through changes and failures at the iSCSI layer that result in
  I_T Nexus failures, see [SPC3] for details and specific requirements.

  In contrast, [SPC2] does not specify detailed persistence
  requirements for reserve/release reservation state after an I_T
  Nexus failure.  Nonetheless, when reserve/release reservations are
  supported by an iSCSI target, the preferred implementation approach
  is to preserve reserve/release reservation state as part of the
  I_T Nexus state for iSCSI session reinstatement (see Section 6.3.5)
  or session continuation (see Section 6.3.6).

  Two additional caveats apply to reserve/release reservations:

  - When connection failure causes the iSCSI session to fail, and
      the session is not reinstated or continued, target retention
      of that session's reserve/release reservation state for an
      extended period of time may require the initiator to issue a
      reset (e.g., LOGICAL UNIT RESET, see section 11.5) in order
      to remove that reservation state.  The Time2Wait and Time2Retain
      timeout values (see Section 7.55) apply to retention of reserve/release
      reservation state after iSCSI session failure because that state
      is part of the I_T Nexus state.  The need for resets in this
      scenario may be reduced by suitable selection of values for
      these two timeouts.

  - Reserve/release reservations may not behave as expected when
      persistent reservations are also used on the same logical unit;
      see the discussion of "Exceptions to SPC-2 RESERVE and RELEASE
      behavior" in [SPC4].

-----------------------

Reference impacts: both [SPC2] and [SPC3] need to be normative references, but [SPC4] can be an informative reference.

-------------------------

I deliberately used "the preferred iSCSI implementation approach"
wording for reserve/release reservation state preservation requirements, as SPC-2 is vague on this topic and I'm rather uncomfortable with placing a requirement as strong as a "SHOULD" on an obsolete mechanism that "SHOULD NOT" be used.

---------------

New problem in Section 4.6.3.3 - in this text:

   The Logout response indicates that the connection or session
   cleanup is completed and no other responses will arrive on the
   connection (if received on the logging out connection). In
   addition, the Logout Response indicates how long the target will
   continue to hold resources for recovery (e.g., command execution
   that continues on a new connection) in the text key Time2Retain
   and how long the initiator must wait before proceeding with
   recovery in the text key Time2Wait.

Time2Wait and Time2Retain are not text keys - they're binary fields in the Logout Response PDU.  Two changes are in order:
	- "text key Time2Retain" -> "Time2Retain field"
	- "text key Time2Wait" -> "Time2Wait field"

Thanks,
--David
----------------------------------------------------
David L. Black, Distinguished Engineer
EMC Corporation, 176 South St., Hopkinton, MA  01748
+1 (508) 293-7953              FAX: +1 (508) 293-7786
david.black@emc.com        Mobile: +1 (978) 394-7754
----------------------------------------------------

_______________________________________________
storm mailing list
storm@ietf.org
https://www.ietf.org/mailman/listinfo/storm

_______________________________________________
storm mailing list
storm@ietf.org
https://www.ietf.org/mailman/listinfo/storm

_______________________________________________
storm mailing list
storm@ietf.org
https://www.ietf.org/mailman/listinfo/storm

_______________________________________________
storm mailing list
storm@ietf.org
https://www.ietf.org/mailman/listinfo/storm