Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-27261

Environment file /etc/kubernetes/node.env is overwritten after a node restart

    XMLWordPrintable

Details

    • Important
    • No
    • CLOUD Sprint 248
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      Cause: A typo in an environment variable prevented a script from detecting that the node.env file was already present

      Consequence: The node.env file would be overwritten on every restart, preventing the kubelet hostname from being fixed should it be detected incorrectly

      Fix: Typo is corrected

      Result: Edits to the node.env are now persisted across reboots.
      Show
      Cause: A typo in an environment variable prevented a script from detecting that the node.env file was already present Consequence: The node.env file would be overwritten on every restart, preventing the kubelet hostname from being fixed should it be detected incorrectly Fix: Typo is corrected Result: Edits to the node.env are now persisted across reboots.
    • Bug Fix
    • In Progress

    Description

      Description of problem:

          Environment file /etc/kubernetes/node.env is overwritten after node restart. 
      
      There is a type in https://github.com/openshift/machine-config-operator/blob/master/templates/common/aws/files/usr-local-bin-aws-kubelet-nodename.yaml where variable should be changed to NODEENV wherever NODENV is found.

      Version-Release number of selected component (if applicable):

          

      How reproducible:

        Easy

      Steps to Reproduce:

          1. Change contents of /etc/kubernetes/node.env
          2. Restart node
          3. Notice changes are lost
          

      Actual results:

        

      Expected results:

           /etc/kubernetes/node.env should not be changed after restart of a node

      Additional info:

          

      Attachments

        Issue Links

          Activity

            People

              joelspeed Joel Speed
              rh-ee-prajendr Prakash Rajendran
              Rio Liu Rio Liu
              Votes:
              11 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated: