-
Bug
-
Resolution: Done-Errata
-
Undefined
-
None
-
4.18
-
None
-
Quality / Stability / Reliability
-
False
-
-
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:
- links to
-
RHEA-2024:6122 OpenShift Container Platform 4.18.z bug fix update