How to create a PersistentVolume from an existing Infinibox NFS Volume

Hello,

I am trying to provision a volume that was manually created. The storage vendor is Infinidat. Whether a use a stripped down version of a YAML file or with everything that I know about the remote volume, the error is always:

Warning  FailedAttachVolume  32s (x9 over 2m40s)  attachdetach-controller  AttachVolume.Attach failed for volume "csi-fca490290c" : rpc error: code = Unknown desc = fail to initialise storage controller while ControllerPublishVolume nfs

I am not sure what I need to do to provision that volume on my Kubernetes nodes, in a namespace. Here is the YAML:

---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: csi-fca490290c
  annotations:
    pv.kubernetes.io/provisioned-by: infinibox-csi-driver
spec:
  storageClassName: ibox-nfs-storageclass-retain
  persistentVolumeReclaimPolicy: Retain
  capacity:
    storage: 1Gi
  claimRef:
     namespace: development
     name: development-postgres-persistentvolumeclaim
  accessModes:
    - ReadWriteMany
  csi:
    driver: infinibox-csi-driver
    fsType: ext4
    volumeHandle: 415033427$$nfs

Please let me know if you can help me out. When I use the dynamic provisioning using a PersistentVolumeClaim, it works fine, but if I want to use a volume that already exists on the Infinidat, it won’t mount in the pod.

Thank you,
Joey

Cluster information:

Kubernetes version: v1.20.8
Host OS: RHEL8

Found answer to my own question under section “Importing an existing NFS PV” at this URL: https://support.infinidat.com/hc/en-us/articles/360008917097-InfiniBox-CSI-Driver-for-Kubernetes-User-Guide.

apiVersion: v1
kind: PersistentVolume
metadata:
  annotations:
    pv.kubernetes.io/provisioned-by: infinibox-csi-driver
  name: gtfspv
spec:
  accessModes:
  - ReadWriteMany
  capacity:
    storage: 2Gi
  csi:
    controllerExpandSecretRef:
      name: infinibox-creds
      namespace: infi
    controllerPublishSecretRef:
      name: infinibox-creds
      namespace: infi
    driver: infinibox-csi-driver
    nodePublishSecretRef:
      name: infinibox-creds
      namespace: infi
    nodeStageSecretRef:
      name: infinibox-creds
      namespace: infi
    volumeAttributes:
      ipAddress: 172.20.37.53
      volPathd: /gtfs_pv
      storage_protocol: nfs
      exportID: "10098" #InfiniBox export ID
    volumeHandle: 7955656$$nfs #InfiniBox file system ID
  persistentVolumeReclaimPolicy: Delete
  storageClassName: infi-nfs-storageclass-demo
  volumeMode: Filesystem