ibm-spectrum-scale-csi
ibm-spectrum-scale-csi copied to clipboard
ReadOnlyMany does not work with static provisioning
As a system admin I created the following static pv:
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-images
labels:
id: images
spec:
capacity:
storage: 10Gi
accessModes:
- ReadOnlyMany
csi:
driver: ibm-spectrum-scale-csi
volumeHandle: 17399599334479190260;099B6A42:5DC52700;path=/mnt/remote_fs0_1m/static/images
Unfortunately, a user can still write to the PV if he mounts the volume. This should not be allowed.
Please fix it as it affects my AI workloads.
Spectrum Scale CSI driver does not support ReadOnlyMany- https://www.ibm.com/support/knowledgecenter/STXKQY_CSI_SHR/com.ibm.spectrum.scale.csi.v1r10.doc/bl1csi_limitations.html
Will you support ReadOnly Volumes for static provisioning in 2.0.0?
No, There is no support of ReadOnly volumes in 2.0.0
The idea of this issue is to deliver this functionality in CSI, so please reopen and implement it in the next release. The functionality should be supported.
Currently there is no way to support this but keeping this open as requirement.
Thanks @deeghuge.
Maybe you could call mmchattr -i yes fileOrDir for a static volume and then reset it again for deletion.
Very good suggestion. I will look into It.