We are working on use-case where one of our TridentBackendConfigs is setup to inly allow importing volumes in no-manage mode. Volumes are pre-created on SVM. We would assume it should work. There is no need to write anything back to SVM from management perspective.
For this to work we:
- provisioned backend with with "vsreadonly" user (with SVM's vsadmin-readonly role assigned.)
- configured backend with autoExportPolicy: false and default policy specified.
- importing volume with -no-manage flag
Backend was created successfully, but actual import volume is failing for some reason:
`tridentctl -n trident-operator import volume ontap-svm2 k8s_c_m_j4w6bxm7_pvc_test_svm2 -f /tmp/pvc.yaml --debug --output wide --no-manage
Request body: {"backend":"ontap-svm2","internalName":"k8s_c_m_j4w6bxm7_pvc_test_svm2","noManage":true,"pvcData":"eyJhcGlWZXJzaW9uIjoidjEiLCJraW5kIjoiUGVyc2lzdGVudFZvbHVtZUNsYWltIiwibWV0YWRhdGEiOnsibmFtZSI6InB2Yy10ZXN0LXN2bTIiLCJuYW1lc3BhY2UiOiJpbmZyYS10ZXN0In0sInNwZWMiOnsiYWNjZXNzTW9kZXMiOlsiUmVhZFdyaXRlTWFueSJdLCJzdG9yYWdlQ2xhc3NOYW1lIjoib250YXAtc3ZtMi1oZGQifX0="}
Response body: {"volume":null,"error":"volume import failed to get size of volume: failed to get volume k8s_c_m_j4w6bxm7_pvc_test_svm2: error checking for existing volume: API status: failed, Reason: Insufficient privileges: user 'vsreadonly' does not have write access to this resource, Code: 13003"}`
Any ideas on what trident-operator wants here and how we can mitigate it?