Huawei / eSDK_K8S_Plugin

Container-Storage-Interface (CSI) for Huawei storage
Apache License 2.0
82 stars 47 forks source link

Can't mount multiple pvc in one pod with fsGroup setting #68

Closed pbabilas closed 2 years ago

pbabilas commented 2 years ago

When I'm trying to mount multiple pvc into one pod, only first mount gets fsgroup settings set correct. But problem is only when mount 2 or more huwawei pv mixing other storageclasses works fine.

pbabilas commented 2 years ago

It seams its new version problem.

the same configuration on v2.2.13:

drwxr-xr-x 1 root root      61 Jun 22 12:33 ..
drwxrwsrwx 2 root mongodb    6 Jun 22 12:32 empty
drwxrwsr-x 3 root mongodb 4.0K Jun 22 12:32 old

and v2.2.16:

mongodb@mongo:/mnt$ ls -lah
total 4.0K
drwxr-xr-x 1 root root      30 Jun 22 11:59 .
drwxr-xr-x 1 root root      61 Jun 22 11:59 ..
drwxrwsrwx 2 root mongodb    6 Jun 22 11:58 empty
drwxr-xr-x 2 root root    4.0K Jun 22 11:41 old

:(

pbabilas commented 2 years ago

Ok, I've found resolution. Just apply CSI Driver:

apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
  name: csi.huawei.com
spec:
  fsGroupPolicy: File

And mounting works fine.