Creating pod fails when worker node lacks IP for NFS communication
Applies to
- NetApp Astra Trident
- Worker node having no IP address for NFS communication
- Pod that is assigned dynamic IP address for NFS communication after it is created
- NFS Persistent Volume (PV)
Issue
- Creating pod using NFS PV created by Trident fails
kubectl describe pod <POD>reports warnings:
Warning FailedMount 38s kubelet Unable to attach or mount volumes: unmounted volumes=[<VOLUME>], unattached volumes=[], failed to process volumes=[]: timed out waiting for the condition
Warning FailedMount 32s kubelet MountVolume.SetUp failed for volume "<PVC>" : rpc error: code = DeadlineExceeded desc = context deadline exceeded
Warning FailedMount 38s kubelet Unable to attach or mount volumes: unmounted volumes=[<VOLUME>], unattached volumes=[], failed to process volumes=[]: timed out waiting for the condition
Warning FailedMount 32s kubelet MountVolume.SetUp failed for volume "<PVC>" : rpc error: code = Internal desc = error mounting NFS volume <IP>:/<NFS> on mountpoint /var/lib/kubelet/pods/<ID>/volumes/kubernetes.io~csi/<PVC>/mount: exit status 32
- Creating pod without mounting PV succeeds, and NFS mounts using
mountcommand in the pod succeeds.
