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

node-image create changes directory permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.19.z
    • 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 the "oc adm node-image create" command erroneously modified the existing permissions of the target assets folder when saving the ISO on disk. This patch fixes the issue by ensuring that the copying operation will preserve the destination folder permissions.
      Show
      Previously the "oc adm node-image create" command erroneously modified the existing permissions of the target assets folder when saving the ISO on disk. This patch fixes the issue by ensuring that the copying operation will preserve the destination folder permissions.
    • None
    • None
    • None
    • None

      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:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: