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

node-image create changes directory permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.17.z
    • 4.17, 4.18, 4.19, 4.20
    • oc / node-image
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • In Progress
    • Bug Fix
    • Hide
      * Previously, the `oc adm node-image create` command incorrectly modified the existing permissions of the target assets folder when the command saved the artifacts on the disk. With this release, a bug fix ensures that the copying operation for the command preserves the destination folder permissions. (link:https://issues.redhat.com/browse/OCPBUGS-58091[OCPBUGS-58091])
      Show
      * Previously, the `oc adm node-image create` command incorrectly modified the existing permissions of the target assets folder when the command saved the artifacts on the disk. With this release, a bug fix ensures that the copying operation for the command preserves the destination folder permissions. (link: https://issues.redhat.com/browse/OCPBUGS-58091 [ OCPBUGS-58091 ])
    • None
    • None
    • None
    • None

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

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

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

      Description of problem:

          When I use node-image create to scale my cluster the directory that I run the command in gets its permissions updated to 777 and set gid.
      
      
      

       

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

      #oc version
      Client Version: 4.17.14
      Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
      Server Version: 4.17.14
      Kubernetes Version: v1.30.7
      

      How reproducible:

          Everytime

      Steps to Reproduce:

      # ll -d /root/
      dr-xr-x---. 11 root root 4096 Feb 5 17:15 /root/
      # oc adm node-image create
      # ll -d /root/
      drwxrwsrwx. 11 root root 4096 Feb 5 17:18 /root/

      Actual results:

          

      Expected results:

          My understanding is this command only configures OCP and creates an iso. I didn't think it would change the permissions on the directory it's operating.

      Additional info:

          

              afasano@redhat.com Andrea Fasano
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              zhenying niu zhenying niu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: