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

SMB CSI Driver can easily fail to cleanup volume

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.18
    • Storage / Operators
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Done
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      Description of problem:

      For our "default" settings of samba server and StorageClass from https://github.com/openshift/csi-operator/blob/master/test/e2e/samba/samba-server.yaml it's enough for end-user to execute `mkdir dir; chmod a-w dir` inside the volume and SMB CSI Driver will fail to cleanup volume:

      $ kubectl describe pv pvc-793ed532-1297-4a12-845f-23b804a4b304
      ...
        Warning  VolumeFailedDelete  62s (x8 over 3m9s)  smb.csi.k8s.io_smb-csi-driver-controller-7767f6685-rvdgl_6ca9501c-0edf-43a5-b6fa-9c9f5627b96b  rpc error: code = Internal desc = failed to delete subdirectory: unlinkat /tmp/pvc-793ed532-1297-4a12-845f-23b804a4b304/pvc-793ed532-1297-4a12-845f-23b804a4b304/dd: permission denied
      

      How reproducible:

      100%
          

      Steps to Reproduce:

      See reproducer in upstream issue: https://github.com/kubernetes-csi/csi-driver-smb/issues/834
          

      Actual results:

      PV is not deleted, the share remains inside SMB server.
          

      Expected results:

      PV is deleted, the share is deleted on SMB server.
          

      Additional info:

      
          

              rh-ee-mpatlaso Maxim Patlasov
              rh-ee-mpatlaso Maxim Patlasov
              None
              None
              Penghao Wang Penghao Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: