Re: [netmod] WG Last Call for draft-ietf-netmod-syslog-model-11

Andy Bierman <andy@yumaworks.com> Tue, 10 January 2017 22:38 UTC

Return-Path: <andy@yumaworks.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 CC8E81294BC for <netmod@ietfa.amsl.com>; Tue, 10 Jan 2017 14:38:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 dgM6Uyg3a_Yq for <netmod@ietfa.amsl.com>; Tue, 10 Jan 2017 14:38:36 -0800 (PST)
Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F3DCE129585 for <netmod@ietf.org>; Tue, 10 Jan 2017 14:29:19 -0800 (PST)
Received: by mail-qk0-x22d.google.com with SMTP id 11so91979736qkl.3 for <netmod@ietf.org>; Tue, 10 Jan 2017 14:29:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=J/gecMXO50uMo8HcL+9kTMjFj7r/1W6ja7KRldOD8WA=; b=E3ktMmQtKZk8hkRwqgsuUrukpNQnhYkHtjoI0UvuZSUeLJhgI64MlB2fRV+uDX+NmV N34AuuN+pvywNIboh1o2x/c+2oActPuBkiXVd+ci4deISYhO2cD3JyziqjXCxNApmg3A HhRwXBBq3JRLi/CAqn2g0LO7tmKBPgrUKBkti4GYa4XzNxj65jeIv1EiiMw8XlB1XZM1 05aBXwXL+0gFuG9gJQMPhGGsKBNhJdfggmRz7zAF6rtMHCnPlrB9Iri50CtEBEgIJX3F 7wy21Qi2EK3MUkpJTR2ORJGRKmGmTccw5gjHuEnJVPVzw6SOXi9hj3pm5onHyUNKwmP7 W5wQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=J/gecMXO50uMo8HcL+9kTMjFj7r/1W6ja7KRldOD8WA=; b=UIA5P34XY8FhxlIs68E1TsgBOCkBmrMt3Wx5TyOD86+Lf2dErAYLphHVCAvbo+vTfq iyrPlF2qp9lmGSz2g3iEEbBD5FphI/j2pbeZGvd5oSbPGt0zZHVmpgdtHO52GUZNEKXW s0b4stTrwSs29h+P4JacjrFlH1/hM8f0IKcSiM9QUcWUFeiw1Yqqkg+3x3hyUZkO8Ggp SGDN3u8AMUwY1jWKdcicENQh3+ermDdnA2SSljj/0vSYrWcqP11/uxhLdBA6Yx0lp07j TPjWf3A9wEWCiT2cL/ss5uEfKeGJ50EfXeYFpNeChed7wYT3mG9g/KuB6sVk93ZZo1Uk j7/g==
X-Gm-Message-State: AIkVDXIJupuC7hKEVUt75Z66UN92jBZjgQUuYecAvnKKcuU8J48oaHG0C1MRM+g8GJ8e/nZ25vKwPFQJu1sz7w==
X-Received: by 10.55.152.4 with SMTP id a4mr4998180qke.69.1484087359099; Tue, 10 Jan 2017 14:29:19 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.142.5 with HTTP; Tue, 10 Jan 2017 14:29:18 -0800 (PST)
In-Reply-To: <1484086805617.18585@Aviatnet.com>
References: <E108CF9B-2992-4B68-ADCA-40F565E47685@cisco.com> <1484086805617.18585@Aviatnet.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 10 Jan 2017 14:29:18 -0800
Message-ID: <CABCOCHS78cGZJ7ZC+Bw_G+PoN-OssgU+RN2DN5mv7TAs=nUGUA@mail.gmail.com>
To: Alex Campbell <Alex.Campbell@aviatnet.com>
Content-Type: multipart/alternative; boundary="94eb2c07ecfadae30c0545c503a9"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/9c186AW9Eb5do1dZMgVxRbi8kVM>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] WG Last Call for draft-ietf-netmod-syslog-model-11
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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, 10 Jan 2017 22:38:39 -0000

On Tue, Jan 10, 2017 at 2:20 PM, Alex Campbell <Alex.Campbell@aviatnet.com>
wrote:

> Hi,
>
> I approve of all of your proposed changes.
>
> However, I'm still not sure that "[implementing] the minimum set of
> functionality that is contained in at least three vendor implementations"
> is a sensible policy.
> The fact that three vendors produce devices that support a feature doesn't
> necessarily mean that every device that would implement this model supports
> the feature - especially for a widely-used, generic model such as syslog.
>


> In my opinion the syslog model should be designed to accommodate all sorts
> of devices, not just rack-mount switches and routers.
> For example, many IP phones don't have a console or an accessible
> filesystem. (Just an example; I'm not actually familiar with the internals
> of IP phones)
> The same goes for small managed switches, such as the HP 1810-G8 that
> happened to be on a nearby coworker's desk when I wrote this.
>
>
totally agree - I was going to send a followup, glad you already did.

YANG mandatory-to-implement should be coupled to the feature set, not the
assumed platform.
For example, is there something in the SYSLOG standard that mandates
console ports or user logins?
If not, why are these mandatory parts of the syslog configuration?

The draft is light on context and use-cases.
A user of the standard should not need to be aware of proprietary
predecessors
in order to understand it.




> Alex
>

Andy


> ________________________________________
> From: Clyde Wildes (cwildes) <cwildes@cisco.com>
> Sent: Friday, 16 December 2016 7:29 a.m.
> To: Alex Campbell
> Cc: netmod@ietf.org; Kent Watsen; Juergen Schoenwaelder
> Subject: Re: [netmod] WG Last Call for draft-ietf-netmod-syslog-model-11
>
> Hi Alex,
>
> Thanks for your review. My comments are inline as [clyde]…
>
> On 12/13/16, 8:16 PM, "netmod on behalf of Alex Campbell" <
> netmod-bounces@ietf.org on behalf of Alex.Campbell@Aviatnet.com> wrote:
>
>     I am considering to implement the data model in this draft.
>
>     I have reviewed this draft and found the following issues. In
> approximately decreasing order of severity:
>
>     * In the "selector-facility" choice statement the cases have
> misleading names - the case where no facility is matched is named
> "facility", and the case where specific facilities are matched is named
> "name". I suggest "no-facilities" and "specified-facilities", or similar.
>
> [clyde] I understand your concern and agree. Please see the next answer
> where I have removed the no-facilities case from the model.
>
>
>     * I disagree with the premise of the "no-facilities" case, which is
> that it can be used to disable a log action, according to the description:
>
>          description
>                 "This case specifies no facilities will match when
>                  comparing the syslog message facility. This is a
>                  method that can be used to effectively disable a
>                  particular log-action (buffer, file, etc).";
>
>       If an administrator wants to disable a log action they should do it
> by either removing it from the configuration, or by setting an "enabled"
> leaf to false.
>       With that in mind, there is no reason for the "no-facilities" case
> to exist.
>
> [clyde] I agree with your suggestion to simplify by removing the
> no-facilities case. Please see the revised selector grouping which will
> appear in the next draft:
>
>   grouping selector {
>     description
>       "This grouping defines a syslog selector which is used to
>        select log messages for the log-action (console, file,
>        remote, etc.). Choose one or both of the following:
>          facility [<facility> <severity>...]
>          pattern-match regular-expression-match-string
>        If both facility and pattern-match are specified, both must
>        match in order for a log message to be selected.";
>     container selector {
>       description
>         "This container describes the log selector parameters
>          for syslog.";
>       list facility-list {
>         key facility;
>         description
>           "This list describes a collection of syslog
>            facilities and severities.";
>         leaf facility {
>           type union {
>             type identityref {
>               base syslogtypes:syslog-facility;
>             }
>             type enumeration {
>               enum all {
>                 description
>                   "This enum describes the case where all
>                    facilities are requested.";
>               }
>             }
>           }
>           description
>             "The leaf uniquely identifies a syslog facility.";
>         }
>         uses log-severity;
>       }
>       leaf pattern-match {
>         if-feature select-match;
>         type string;
>         description
>           "This leaf desribes a Posix 1003.2 regular expression
>            string that can be used to select a syslog message for
>            logging. The match is performed on the RFC 5424
>            SYSLOG-MSG field.";
>       }
>     }
>   }
>
>
>     * What is the behaviour of a selector if neither "no-facilities" nor
> "facility-list" is present?
>
> [clyde] At least one or both of the following must be specified: facility;
> pattern-match (if supported).
>
> I have updated the description at the beginning of the selector – please
> see above.
>
>
>     * In the "selector" grouping it is not clear how the facility and
> pattern conditions are combined to decide whether a message is selected.
>
>       Must they both match the message, or is it sufficient for either one
> to match the message?
>
> [clyde] If both are specified they must both match the message. This is
> consistent with the syslog implementations by Cisco and Juniper.
>
>
>     * Not all servers have a console; there should be a feature to
> indicate whether logging to the console is supported.
>
> [clyde] I have received comments in earlier reviews that we should
> implement the minimum set of functionality that is contained in at least
> three vendor implementations.
>
> Console is supported by Alcatel/Lucent, Brocade, Cisco (XE, XR, and NXOS),
> Juniper, and Linux-rsyslog. Removal of the console action for your case
> could be done through a vendor specific deviation statement.
>
>
>     * Likewise, not all servers may support logging to user sessions.
>
> [clyde] User sessions are supported by Alcatel/Lucent, and Juniper. I will
> make this a feature in the next revision of the draft since only two
> vendors implement it.
>
>
>     * Likewise, not all servers may support a user-accessible filesystem.
>
> [clyde] Files are supported by Alcatel/Lucent, Cisco (XE, XR, and NXOS),
> Juniper, and Linux-rsyslog. Removal of the file action for your case could
> be done through a vendor specific deviation statement.
>
>
>     * RFC 5424 states that the severity and protocol values are not
> normative.
>
> [clyde] Is it that you are asking for RFC 5424 to be removed from the
> Normative Reference section of the draft and added to the Informative
> section?
>
>
>     * It's not clear to me why this needs to be split into two modules. Is
> it so that other modules can define logging parameters but still be usable
> on a device without syslog?
>
> [clyde] We were guided by an early Yang Dr.’s advice in the choice of two
> modules – one for types and one for the model. I will defer to our mentor
> Jürgen for his advice.
>
>
>     * "log-severity" defines a severity filter, not a severity, so its
> name is misleading.
>
> [clyde] Please suggest a better name.
>
>
>     * Perhaps the "severity" type and the facility identities should have
> "reference" statements referring to RFC 5424, rather than referring to it
> in the description.
>
> [clyde] I will defer to our mentor Jürgen for his advice. We previously
> followed his advice here.
>
>
>     * In section "8.2", "admisintrator" is a typo.
>
> [clyde] This will be fixed in the next draft.
>
>
>     I assume that the means of accessing the memory buffer and log files
> are out of scope of this data model.
>
> [clyde] This draft covers syslog configuration only.
>
>
> Thanks,
>
> Clyde
>
>
>     Alex
>
>     ________________________________________
>     From: netmod <netmod-bounces@ietf.org> on behalf of Kent Watsen <
> kwatsen@juniper.net>
>     Sent: Wednesday, 14 December 2016 2:01 p.m.
>     To: netmod@ietf.org
>     Subject: [netmod] WG Last Call for draft-ietf-netmod-syslog-model-11
>
>     This is a notice to start a two-week NETMOD WG last call for the
> document:
>
>         A YANG Data Model for Syslog Configuration
>         https://tools.ietf.org/html/draft-ietf-netmod-syslog-model-11
>
>     Please indicate your support or concerns by Tuesday, December 27, 2016.
>
>     We are particularly interested in statements of the form:
>       * I have reviewed this draft and found no issues.
>       * I have reviewed this draft and found the following issues: ...
>
>     As well as:
>       * I have implemented the data model in this draft.
>       * I am implementing the data model in this draft.
>       * I am considering to implement the data model in this draft.
>       * I am not considering to implement the data model in this draft.
>
>     Thank you,
>     NETMOD WG Chairs
>
>
>
>     _______________________________________________
>     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
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>