dell / csm

Dell Container Storage Modules (CSM)
Apache License 2.0
71 stars 15 forks source link

[BUG]: CSI-PowerStore Fails to Apply 'mountOptions' Passed in StorageClass #1582

Closed AkshaySainiDell closed 3 days ago

AkshaySainiDell commented 4 days ago

Bug Description

The CSI-PowerStore driver is not correctly applying the mount options specified in the StorageClass. The nfsvers=4.1 option passed via the StorageClass is not utilized during the mount operation, causing the volume to be mounted without the expected NFS version.  Error mount failed: exit status 32 is seen in NodePublishVolume:

{"level":"info","msg":"/csi.v1.Node/NodePublishVolume: REP 0010: rpc error: code = Internal desc = error bind disk /var/lib/kubelet/plugins/kubernetes.io/csi/csi-powerstore.dellemc.com/d5c6a897ce6098de57d376f49750f4dd9e37e2a28d23a8c6f36ce21325609221/globalmount/67291415-4470-cbaa-8a81-4242be830a18/common_folder to target path: mount failed: exit status 32","time":"2024-11-04T18:36:17.102635436Z"}

Logs

N/A

Screenshots

No response

Additional Environment Information

No response

Steps to Reproduce

Define a StorageClass with the mountOptions parameter, including nfsvers=4.1. Deploy a PVC & Pod using the StorageClass in a Kubernetes/OCP environment.

Expected Behavior

The mount options specified in the StorageClass, such as nfsvers=4.1, are correctly applied.

CSM Driver(s)

CSM PowerStore

Installation Type

No response

Container Storage Modules Enabled

No response

Container Orchestrator

N/A

Operating System

N/A