Re: [netmod] AD review of draft-ietf-netmod-entity-06

"Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com> Tue, 09 January 2018 14:39 UTC

Return-Path: <bart.bogaert@nokia.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 050A612D86E for <netmod@ietfa.amsl.com>; Tue, 9 Jan 2018 06:39:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level:
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fwpDcMymaNvY for <netmod@ietfa.amsl.com>; Tue, 9 Jan 2018 06:39:01 -0800 (PST)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0096.outbound.protection.outlook.com [104.47.1.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 29C1712D86A for <netmod@ietf.org>; Tue, 9 Jan 2018 06:39:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EymY31/jumfGgsDvRVrMaP3KFZNx6yh0KMJEQeJ8bdQ=; b=PL+qZtTGn1ZMbLIlW9haMz4PtV0U6f/bey7KuNv/PFh8Vd46Fja3FIM3sN+j9fiG0xnfjOXAeglhkQivXSsHYLfA4XkGCvA3N8ECZDNqd42VUOjCPCfIvUW/VYPsvXY6p+4fcjcmG3YccMNooegJyiyvBo5v1442XVRi6RDqf9E=
Received: from AM4PR07MB1716.eurprd07.prod.outlook.com (10.166.133.24) by AM4PR07MB3457.eurprd07.prod.outlook.com (10.171.190.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.1; Tue, 9 Jan 2018 14:38:58 +0000
Received: from AM4PR07MB1716.eurprd07.prod.outlook.com ([fe80::a52a:4acb:dfe8:24c0]) by AM4PR07MB1716.eurprd07.prod.outlook.com ([fe80::a52a:4acb:dfe8:24c0%14]) with mapi id 15.20.0407.005; Tue, 9 Jan 2018 14:38:58 +0000
From: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>
To: Robert Wilton <rwilton@cisco.com>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] AD review of draft-ietf-netmod-entity-06
Thread-Index: AQHTeZsGj/By4wgWGkSTA5QT6Ag4U6NN6XKHgBw2jXA=
Date: Tue, 09 Jan 2018 14:38:57 +0000
Message-ID: <AM4PR07MB1716BF34E1A66823C9A02DFA94100@AM4PR07MB1716.eurprd07.prod.outlook.com>
References: <fd46c4ab-5c43-1b61-2b00-ca71f13fc932@cisco.com> <20171220.160020.956270997417344353.mbj@tail-f.com> <cb06b12e-59d9-148e-03f0-2ffdb1e4e15f@cisco.com> <20171221.123746.382540578845045602.mbj@tail-f.com> <5aa4a306-7d57-8ad2-7ec0-4a6f59652862@cisco.com>
In-Reply-To: <5aa4a306-7d57-8ad2-7ec0-4a6f59652862@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=bart.bogaert@nokia.com;
x-originating-ip: [135.245.212.5]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM4PR07MB3457; 7:EnNXQ/kYONiTC6fkWiLq506TCdsKNPx1qk0/UCuaej7sD3LqOQsCjwBx2Ec2wyUvNj8yuYo3T3zg4sy7tX8RKSSmb4+n1qgr0J6hPnctQQZ+dCp/qDd0Ukkhpoqb8F56+GRr9y0kBxJ98jd3iRCSvXSXSLTHpLjED7sdsvR+uFTY5I/TU9BC83tImzphC8wPy4JNYXCmUqxFzjGT8YvUcHRX3d7EoajrSGLSwwj95i0L96DN2jjoAJNZfMxm+kmD
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 37c899da-2b11-475c-df28-08d5576eb790
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020); SRVR:AM4PR07MB3457;
x-ms-traffictypediagnostic: AM4PR07MB3457:
x-microsoft-antispam-prvs: <AM4PR07MB34570F02F49141A0A8E81E3994100@AM4PR07MB3457.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(95692535739014);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231023)(11241501184)(806099)(944501075)(10201501046)(6055026)(6041268)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM4PR07MB3457; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM4PR07MB3457;
x-forefront-prvs: 0547116B72
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(39380400002)(376002)(39860400002)(396003)(346002)(51444003)(13464003)(199004)(189003)(40224003)(24454002)(106356001)(102836004)(3846002)(9686003)(25786009)(5660300001)(68736007)(59450400001)(6116002)(7696005)(53546011)(55016002)(97736004)(105586002)(6306002)(6246003)(86362001)(93886005)(305945005)(81156014)(81166006)(76176011)(6506007)(14454004)(99286004)(2906002)(53936002)(66066001)(8936002)(3280700002)(6436002)(7736002)(230783001)(74316002)(966005)(2501003)(5250100002)(2900100001)(2950100002)(8676002)(3660700001)(33656002)(110136005)(229853002)(478600001)(316002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM4PR07MB3457; H:AM4PR07MB1716.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: pDwWtYgtzS1gxDA0BWOkpTxu5nq8VSmvbg/q40N3TF5caaGRdTjj2XH7sQhYVGupeUIQOk50A+wm1OU7nEGs5js9tRULo3GWYbnTZxgijVnqNbMOh5GCWQ3YONfa9xPP
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 37c899da-2b11-475c-df28-08d5576eb790
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2018 14:38:57.9755 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR07MB3457
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/vd7cXM-o3JR8Pc2zdUjXctWKHI0>
Subject: Re: [netmod] AD review of draft-ietf-netmod-entity-06
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jan 2018 14:39:04 -0000

Hi Martin,

We had a discussion on this and we have some concerns about below statement (behavior in the description statement):

>    This leaf can be configured.  The configured value is used only if
>    the server cannot determine the vendor-specific serial number from
>    the component itself.

For the above sentence “server cannot determine” we have 2 cases:
1.	It can’t be determined because there is nothing detected.  According to the NMDA-draft it is clear that in this case there is no row for the associated component and hence no data.  I think this case is covered by the sentence in the latest draft-ietf-netmod-entity for the list “component” where it is stated: “When the server detects a new hardware component, it initializes a list entry in the operational state.”, so the above sentence only applies for the second case below.
2.	The second case is that something is detected but it can’t be read.  We do not see a reason to use the value configured for the leafs ‘serial-num’, ‘mfg-name’ and ‘model-name’ of a matching entry in the configuration data.  These leafs are defined as optional so why would we report something entered by an operator in the operational datastore that intends to report on what is detected?  Is it not better to not report them at all?  In an NMDA context it would be possible to have a different value (or no value at all) for certain leafs while there is something in the running/intended datastore.

Best regards, Bart

-----Original Message-----
From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Robert Wilton
Sent: Thursday, December 21, 2017 4:14 PM
To: Martin Bjorklund <mbj@tail-f.com>; netmod@ietf.org
Subject: Re: [netmod] AD review of draft-ietf-netmod-entity-06

Hi Martin,


On 21/12/2017 11:37, Martin Bjorklund wrote:
> Hi,
>
> I need WG input on this issue.  The question is how to handle 
> 'serial-num', 'mfg-name', and 'model-name'.  I think they should all 
> be treated the same.  Based on previous WG discussion (see e.g. the 
> mail thread "draft-ietf-netmod-entity issue #13"), I think they should 
> all be configurable, but the configured value is only used in 
> operational state if the system cannot read it from the hardware.
I think that this approach is probably OK:
  - The client can always see the real value if it is available.
  - If it is not available then they can assign a value via configuration.

I was also considering an alternative approach of having a separate set of config false leaves for the "burnt in values".  And then having the configurable leaves always override the default operational values. E.g. similar to how an interface MAC address would expect to be handled.

But one set of leaves is probably sufficient.

Thanks,
Rob


>
> So I suggest the following changes:
>
> OLD:
>
>        leaf serial-num {
>          type string;
>          config false;
>          description
>            "The vendor-specific serial number string for the
>             component.  The preferred value is the serial number
>             string actually printed on the component itself (if
>             present).";
>          reference "RFC 6933: entPhysicalSerialNum";
>        }
>
> NEW:
>
>        leaf serial-num {
>          type string;
>          description
>            "The vendor-specific serial number string for the
>             component.  The preferred value is the serial number
>             string actually printed on the component itself (if
>             present).
>
>             This leaf can be configured.  There are two use cases for
>             this; as a 'post-it' note if the server cannot determine
>             this value from the component, or when pre-provisioning a
>             component.
>
>             If the server can determine the serial number from the
>             component, then that value is always used in operational
>             state, even if another value has been configured.";
>          reference "RFC 6933: entPhysicalSerialNum";
>        }
>
> And corresponding text for 'mfg-name' and 'model-name'.
>
> And also:
>
> OLD:
>
>           When the server detects a new hardware component, it
>           initializes a list entry in the operational state.
>
>           If the server does not support configuration of hardware
>           components, list entries in the operational state are
>           initialized with values for all nodes as detected by the
>           implementation.
>
>           Otherwise, the following procedure is followed:
>
>             1. If there is an entry in the /hardware/component list in
>                the intended configuration with values for the nodes
>                'class', 'parent', 'parent-rel-pos' that are equal to
>                the detected values, then:
>
>             1a. If the configured entry has a value for 'mfg-name'
>                 that is equal to the detected value, or if the
>                 'mfg-name' value cannot be detected, then the list
>                 entry in the operational state is initialized with the
>                 configured values for all configured nodes, including
>                 the 'name'.
>
>                 Otherwise, the list entry in the operational state is
>                 initialized with values for all nodes as detected by
>                 the implementation.  The implementation may raise an
>                 alarm that informs about the 'mfg-name' mismatch
>                 condition.  How this is done is outside the scope of
>                 this document.
>
>             1b. Otherwise (i.e., there is no matching configuration
>                 entry), the list entry in the operational state is
>                 initialized with values for all nodes as detected by
>                 the implementation.
>
>           If the /hardware/component list in the intended
>           configuration is modified, then the system MUST behave as if
>           it re-initializes itself, and follow the procedure in (1).";
>
> NEW:
>
>           When the server detects a new hardware component, it
>           initializes a list entry in the operational state.
>
>           If the server does not support configuration of hardware
>           components, list entries in the operational state are
>           initialized with values for all nodes as detected by the
>           implementation.
>
>           Otherwise, the following procedure is followed:
>
>             1. If there is an entry in the /hardware/component list in
>                the intended configuration with values for the nodes
>                'class', 'parent', 'parent-rel-pos' that are equal to
>                the detected values, then the list entry in operational
>                state is initialized with the configured values,
>                including the 'name'.  The leafs 'serial-num',
>                'mfg-name', and 'model-name' are treated specially; see
>                their descriptions for details.
>
>             2. Otherwise (i.e., there is no matching configuration
>                entry), the list entry in the operational state is
>                initialized with values for all nodes as detected by
>                the implementation.
>
>           If the /hardware/component list in the intended
>           configuration is modified, then the system MUST behave as if
>           it re-initializes itself, and follow the procedure in (1).";
>
>
>
> /martin
>
>
>
>
> Benoit Claise <bclaise@cisco.com> wrote:
>> On 12/20/2017 4:00 PM, Martin Bjorklund wrote:
>>> Benoit Claise <bclaise@cisco.com> wrote:
>>>> Hi Martin,
>>>>
>>>> Thanks.
>>>> Only kept the relevant excerpts.
>>>>>> - Some objects are read-write in RFC6933:
>>>>>>          entPhysicalSerialNum
>>>>>>          entPhysicalAlias
>>>>>>          entPhysicalAssetID
>>>>>>          entPhysicalUris
>>>>>>
>>>>>> For example, entPhysicalSerialNum being read-write always bothered me.
>>>>>> serial-num is now "config false", which is a good news IMO.
>>>>> Actually, this was not the intention.  In 
>>>>> draft-ietf-netmod-entity-03 this is configurable.  I missed this in the conversion to NMDA.
>>>> Ah. So no good news in this case...
>>>>>> In the reverse direction, entPhysicalMfgName is read-only in 
>>>>>> RFC6933, while it's "config true" in draft-ietf-netmod-entity
>>>>> Yes, this was added per request from the WG.  See e.g. the thread 
>>>>> "draft-ietf-netmod-entity issue #13".
>>>> Sure. It was mainly an observation.
>>>>> However, I think that what we have now is probably not correct.  I 
>>>>> think that all nodes 'serial-num', 'mfg-name', and 'model-name' 
>>>>> should be config true, and the description of list 'component' 
>>>>> updated to reflect that all these tree leafs are handled the same way.
>>>>>
>>>>> I would like to know what the WG thinks about this.
>>>> Talking as a contributor this time.
>>>> It seems that inventory management is kind of broken when someone 
>>>> can change 'serial-num', 'mfg-name', and 'model-name.
>>> They can't really change them.  The configured values are only used 
>>> (i.e. visible in the operational state) if the device cannot detect 
>>> them automatically.  I.e., they work as "post-it" notes only.
>> If I look at, for example, the mfg-name, description, this is not 
>> what it says.
>>
>>     leaf mfg-name {
>>             type string;
>>             description
>>               "The name of the manufacturer of this physical component.
>>                The preferred value is the manufacturer name string
>>                actually printed on the component itself (if present).
>>
>>                Note that comparisons between instances of the model-name,
>>                firmware-rev, software-rev, and the serial-num nodes are
>>                only meaningful amongst component with the same value of
>>                mfg-name.
>>
>>                If the manufacturer name string associated with the
>>                physical component is unknown to the server, then this
>>                node is not instantiated.";
>>             reference "RFC 6933 <https://tools.ietf.org/html/rfc6933>:
>>             entPhysicalMfgName";
>>
>> Regards, Benoit
>>
>>>
>>> /martin
>>> .
>>>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
> .
>

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