Skip to content

Add new node.openshift.io/rhelmajor=7|8 label #582

Closed

Description

@cgwalters

#514 added the OS version but it isn't usable as a selector for e.g. daemonsets that just care about RHEL major (e.g. iptables vs nftables).

Let's add a new label and implement it for both RHCOS and BYO RHEL.

Proposal is: node.openshift.io/rhelmajor=7|8.

Activity

  1. ashcrow commented on Mar 26, 2019

    @ashcrow
    Member

    node.openshift.io/rhelmajor=7|8 makes sense to me.

  2. ashcrow commented on Mar 26, 2019

    @ashcrow
    Member

    The RHCOS VERSION or VERSION_ID can be parsed to set this like so: echo $VERSION | cut -d . -f 2

  3. sjenning commented on Mar 26, 2019

    @sjenning
    Contributor
  4. chambridge commented on Sep 11, 2019

    @chambridge

    We wish to use this as part of our metrics information that will be utilized for subscription entitlement reconciliation. The sooner we have this information the better.

  5. sdodson commented on Sep 11, 2019

    @sdodson
    Member

    We wish to use this as part of our metrics information that will be utilized for subscription entitlement reconciliation. The sooner we have this information the better.

    Do you also have a use for differentiating between RHEL and RHCOS for those same purposes?

  6. chambridge commented on Sep 11, 2019

    @chambridge

    We are currently using the label node.openshift.io/os_id which shows up on kube_node_labels as label_node_openshift_io_os_id to differentiate between RHEL and RHCOS.

  7. adelton commented on Oct 23, 2019

    @adelton

    Wouldn't using something like PLATFORM_ID="platform:el8" directly from /etc/os-release be a reasonable value and distinguisher? So something like node.openshift.io/platform=platform:el8?

  8. adelton commented on Oct 23, 2019

    @adelton

    Or is it important for the value to be a single integer value?

  9. ashcrow commented on Oct 23, 2019

    @ashcrow
    Member

    In the latest devel builds I do see a new key in /etc/os-release called RHEL_VERSION that @cgwalters has kindly added.

  10. cgwalters commented on Oct 23, 2019

    @cgwalters
    MemberAuthor

    Wouldn't using something like PLATFORM_ID="platform:el8" directly from /etc/os-release be a reasonable value and distinguisher?

    That doesn't seem to exist in RHEL7. It's some modularity invention right? Are you aware of any docs for what it means? Doesn't seem to be more useful than just VERSION_ID to me?

  11. adelton commented on Oct 24, 2019

    @adelton
  12. adelton commented on Oct 24, 2019

    @adelton

    In the latest devel builds I do see a new key in /etc/os-release called RHEL_VERSION that @cgwalters has kindly added.

    Devel builds of which product are these? On RHEL 8.1, redhat-release-8.1-3.3.el8.x86_64 does not seem to have RHEL_VERSION, and neither I see it on CoreOS 42.80.20191010.0 with redhat-release-coreos-420.8-3.el8.x86_64.

  13. cgwalters commented on Oct 24, 2019

    @cgwalters
    MemberAuthor

    Devel builds of which product are these?

    RHCOS 43.81 with redhat-release-coreos.

    I don't think we need RHEL_VERSION in redhat-release beacuse the VERSION_ID is the same thing. RHCOS though is a fusion of RHEL and OpenShift versions.

  14. adelton commented on Oct 25, 2019

    @adelton

    Ah, I see.
    So I guess the question is, do we hope to get the major RHEL version computed on the OS level, perhaps as part of the kubelet.service definition, so that the --node-labels=node.openshift.io/rhelmajor=(7|8) is passed in with that single-digit value, or are we OK with passing in both the VERSION and RHEL_VERSION values and computing the value in the .go code?

  15. openshift-bot commented on Sep 19, 2020

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  16. added
    lifecycle/stale
    on Sep 19, 2020
  17. openshift-bot commented on Oct 21, 2020

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  18. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Oct 21, 2020
  19. openshift-bot commented on Nov 20, 2020

    @openshift-bot
    Contributor

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

  20. openshift-ci-robot commented on Nov 20, 2020

    @openshift-ci-robot
    Contributor

    @openshift-bot: Closing this issue.

    Details

    In response to this:

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

    lifecycle/rotten

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions