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