You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are trying to create a RWX NFS volume with a NFS backend (say: svm-k8s-cluster and backend is /svm_k8s-cluster_NFS_vol).
But trident operator ignores the mount path from backend and updates volume.source.volumeAttributes.internalName with trident_<pvc_name>), this is the expected behaviour as per below code, but why the NFS mount path from the actual backend is not considered in the code?
To Reproduce
Steps to reproduce the behavior:
Create a NFS backendconfig with svm name, and create an actual ontap NFS volume with mountpath /svm_k8s_cluster_NFS_vol)
Expected behavior
trident updates internalName (mountpath) to /trident_pvc-name instead of //trident_pvc-name
The text was updated successfully, but these errors were encountered:
Hi @sjpeeris , thanks for responding. Trident volumes are created with an "/" + internalName as seen in the code, but the problem is that it is hardcoded, so mounting the volumes at non-root paths at netapp backend becomes a problem, the backend administrator is forced to give root path access of the SVM to the k8s clusters volumes.
The expectation is that when a volumes get created with the given NFS Storage class (mounting volumes at /svm_nfs_vol), the internalName should be updated to include /svm_nfs_vol like /svm_nfs_vol/volumeName rather than /volumeName (which is accessing / path irrespective of NFS SC configuration).
Describe the bug
We are trying to create a RWX NFS volume with a NFS backend (say: svm-k8s-cluster and backend is /svm_k8s-cluster_NFS_vol).
But trident operator ignores the mount path from backend and updates volume.source.volumeAttributes.internalName with trident_<pvc_name>), this is the expected behaviour as per below code, but why the NFS mount path from the actual backend is not considered in the code?
trident/storage_drivers/ontap/ontap_common.go
Line 3597 in 2da1ca0
Environment
Openshift 4.14.25
To Reproduce
Steps to reproduce the behavior:
Create a NFS backendconfig with svm name, and create an actual ontap NFS volume with mountpath /svm_k8s_cluster_NFS_vol)
Expected behavior
trident updates internalName (mountpath) to /trident_pvc-name instead of //trident_pvc-name
The text was updated successfully, but these errors were encountered: