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

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

XMLWordPrintable

    • Important
    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the node.env file would be overwritten on every restart due to a typo in an environment variable. With this release, edits to the node.env will persist after a restart. (link:https://issues.redhat.com/browse/OCPBUGS-27362[*OCPBUGS-27362*])

      //original bug text below.
      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
      * Previously, the node.env file would be overwritten on every restart due to a typo in an environment variable. With this release, edits to the node.env will persist after a restart. (link: https://issues.redhat.com/browse/OCPBUGS-27362 [* OCPBUGS-27362 *]) //original bug text below. 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
    • Proposed

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

      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
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: