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

node-image create changes directory permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.20.0
    • 4.17, 4.18, 4.19, 4.20
    • oc / node-image
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Agent Sprint 271
    • 1
    • Done
    • Bug Fix
    • Hide
      * Previously, when using the `oc adm node-image create` command to add nodes to a cluster, the command erroneously modified the existing permissions of the target assets folder when saving the ISO on disk. With this update, the fix ensures that the copying operation will preserve the destination folder permissions. (link:https://issues.redhat.com/browse/OCPBUGS-49897[OCPBUGS-49897])
      Show
      * Previously, when using the `oc adm node-image create` command to add nodes to a cluster, the command erroneously modified the existing permissions of the target assets folder when saving the ISO on disk. With this update, the fix ensures that the copying operation will preserve the destination folder permissions. (link: https://issues.redhat.com/browse/OCPBUGS-49897 [ OCPBUGS-49897 ])
    • None
    • None
    • None
    • None

      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
              danradez Dan Radez (Inactive)
              None
              None
              zhenying niu zhenying niu
              None
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: