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

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

      None

      Show
      None
    • Hide
      * Previously, a typo in an environment variable prevented a script from detecting if the `node.env` file was present. Because of this, the `node.env` file would be overwritten on every restart, preventing the kubelet host name from being fixed. With this fix the typo is corrected. As a result, edits to the `node.env` are now persisted across reboots. (link:https://issues.redhat.com/browse/OCPBUGS-27261[*OCPBUGS-27261*])
      Show
      * Previously, a typo in an environment variable prevented a script from detecting if the `node.env` file was present. Because of this, the `node.env` file would be overwritten on every restart, preventing the kubelet host name from being fixed. With this fix the typo is corrected. As a result, edits to the `node.env` are now persisted across reboots. (link: https://issues.redhat.com/browse/OCPBUGS-27261 [* OCPBUGS-27261 *])
    • Bug Fix
    • Done

      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:

          

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

                Created:
                Updated:
                Resolved: