Skip to content

config-linux: Many config properties without RFC 2119 language #746

Closed

Description

@wking

I've filed #745 to add RFC 2119 language to disableOOMKiller, but there are many other settings in config-linux.md without RFC 2119 wording to connect them with compliance testing (e.g. oomScoreAdj, memory, …). Without RFC 2119 language, it is not very clear what config-author and runtime responsibilities are intended to be. And it is clear that, whatever the intentions were:

  • A config would be technically valid with ridiculous values in the setting (e.g. "oomScoreAdj" = 999999999999999999999999999999999999999999999999999999999999999999).
  • A runtime would be technically valid if it silently ignored the setting.

I think we should address this before cutting 1.0. #745 is a (small) step in that direction, but I wanted to open this issue to get feedback on the issue in general (without getting bogged down on a specific setting).

Activity

  1. changed the title [-]config-linux: Many config propoerties without RFC 2119 language[/-] [+]config-linux: Many config properties without RFC 2119 language[/+] on Mar 28, 2017
  2. wking commented on Mar 29, 2017

    @wking
    ContributorAuthor

    #728 is another PR that is partially addressing this.

  3. wking commented on Apr 26, 2017

    @wking
    ContributorAuthor

    In the meeting today, folks were asking for a way to close this issue, so here's a checklist of all the properties in config-linux for whether or not they have sufficient runtime-facing RFC 2119 language for compliance testing (as of 138ad89):

    Ideally we'd close each of these with a compliance test in runtime-tools, but I'm currently checking them off when I feel like there is sufficient spec clarity, regardless of the existence of compliance tests. If folks feel like I should be checking something off that is unchecked, landing runtime-tools compliance tests (or pointing out the existing runtime-tools tests which I've overlooked) would be a convincing way to argue for checking the property off. In some cases (e.g. oomScoreAdj), I have left the entry unchecked because the current test assumes /proc/1/oom_score_adj which is not backed by spec language (and which is only correct when the config calls for a new PID namespace).

    I'll come back and update this comment as work continues.

  4. crosbymichael commented on Jun 1, 2017

    @crosbymichael
    Member

    We don't want to go down this route. The actually changes that were submitted are coupling the spec to very, very implementation specific functionality of kernels, versions, and posix specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions