ibm-spectrum-scale-csi icon indicating copy to clipboard operation
ibm-spectrum-scale-csi copied to clipboard

ReadOnlyMany does not work with static provisioning

Open przem123 opened this issue 5 years ago • 7 comments

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.

przem123 avatar Mar 02 '20 15:03 przem123

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

smitaraut avatar May 21 '20 07:05 smitaraut

Will you support ReadOnly Volumes for static provisioning in 2.0.0?

przem123 avatar May 25 '20 17:05 przem123

No, There is no support of ReadOnly volumes in 2.0.0

deeghuge avatar May 25 '20 18:05 deeghuge

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.

przem123 avatar May 25 '20 22:05 przem123

Currently there is no way to support this but keeping this open as requirement.

deeghuge avatar May 26 '20 02:05 deeghuge

Thanks @deeghuge.

Maybe you could call mmchattr -i yes fileOrDir for a static volume and then reset it again for deletion.

przem123 avatar May 26 '20 15:05 przem123

Very good suggestion. I will look into It.

deeghuge avatar May 26 '20 15:05 deeghuge