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

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

XMLWordPrintable

    • Important
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, a misspelled environment variable prevented a script from detecting that the `node.env` file was present. This caused the contents of the `node.env` file to be overwritten after each boot, and the kubelet hostname could not be changed. With this update, the environment variable spelling is corrected and edits to the `node.env` file persist across reboots. (link:https://issues.redhat.com/browse/OCPBUGS-27307[*OCPBUGS-27307*])
      Show
      * Previously, a misspelled environment variable prevented a script from detecting that the `node.env` file was present. This caused the contents of the `node.env` file to be overwritten after each boot, and the kubelet hostname could not be changed. With this update, the environment variable spelling is corrected and edits to the `node.env` file persist across reboots. (link: https://issues.redhat.com/browse/OCPBUGS-27307 [* OCPBUGS-27307 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-27261. The following is the description of the original issue:

      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:

          

            team-mco Team MCO
            openshift-crt-jira-prow OpenShift Prow Bot
            Rio Liu Rio Liu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: