aws-efs-csi-driver icon indicating copy to clipboard operation
aws-efs-csi-driver copied to clipboard

When mounting two EFS volumes in one deployment, Kubernetes pods get stuck in the Init:0/1 state.

Open lbteam001 opened this issue 1 year ago • 9 comments

The pod becomes stuck in the Init:0/1 state when I try to mount two EFS Volumes in a single deployment. But the Pod starts when I mount just one volume. I have deployed the Latest version of efs-csi-driver in EKS cluster.

lbteam001 avatar Jan 11 '24 11:01 lbteam001

What version of K8s do you have? Maybe your error is the same as this one #1245 ? I also had deployments with 2 EFs installed on node where sometimes error occured.

gkalwig avatar Jan 16 '24 08:01 gkalwig

Hi @gkalwig K8s Version= 1.28 Actually, neither the app pod nor the efs pod's logs include any errors. The following warning appears when I describe the app pod: Error: NodeExpandVolume.NodeExpandVolume failed for volume "pv-logs" : Expander.NodeExpand found CSI plugin kubernetes.io/csi/efs.csi.aws.com to not support node expansion

lbteam001 avatar Jan 16 '24 11:01 lbteam001

Even I have faced the same issue

Warning FailedMount 2m58s (x25 over 4m34s) kubelet MountVolume.Setup failed while expanding volume for volume "yggdrasil-inbound-pv" : Expander.NodeExpand found CSI plugin kubernetes.io/csi/efs.csi.aws.com to not support node expansion

Could you please let us know what is the exact issue and what is the ETA for this?

srujankujmar avatar Jan 29 '24 05:01 srujankujmar

NodeExpandVolume is a feature, which certain CSI drivers support, which allows customers to expand their volumes. We do not support this because it doesn't make sense in our case (EFS doesn't have a size limit). And we have that listed in our documentation here. I think Kubernetes will call this feature if a user tries editing the specification of their Persistent Volume object to increase the size and correct action is taken because it observes that we cannot expand volumes with our driver, and it logs this warning.

mskanth972 avatar Jan 30 '24 17:01 mskanth972

we havent modified

NodeExpandVolume is a feature, which certain CSI drivers support, which allows customers to expand their volumes. We do not support this because it doesn't make sense in our case (EFS doesn't have a size limit). And we have that listed in our documentation here. I think Kubernetes will call this feature if a user tries editing the specification of their Persistent Volume object to increase the size and correct action is taken because it observes that we cannot expand volumes with our driver, and it logs this warning.

We haven't modified the size of our pv

srujankujmar avatar Jan 31 '24 05:01 srujankujmar

NodeExpandVolume is a feature, which certain CSI drivers support, which allows customers to expand their volumes. We do not support this because it doesn't make sense in our case (EFS doesn't have a size limit). And we have that listed in our documentation here. I think Kubernetes will call this feature if a user tries editing the specification of their Persistent Volume object to increase the size and correct action is taken because it observes that we cannot expand volumes with our driver, and it logs this warning.

We haven't modified the size of our pv

srujankujmar avatar Jan 31 '24 05:01 srujankujmar

Hi @mskanth972 Here we are just mounting two EFS Volumes in a single deployment, haven't modified the size of our pv. When we are mounting only one Volume then it's working cool.

lbteam001 avatar Feb 20 '24 09:02 lbteam001