Closed as not planned
Description
/kind bug
What happened?
Getting Pod error FailedAttachVolume: AttachVolume.Attach failed for volume "pvc-XXX" : rpc error: code = Internal desc = Could not attach volume "vol-XXX" to node "i-XXX": attachment of disk "vol-XX" failed, expected device to be attached but was attaching
Error log from ebs-csi-controller:
I1025 11:08:34.489703 1 controller.go:415] "ControllerPublishVolume: attaching" volumeID="vol-XXX" nodeID="i-XXX"
E1025 11:08:49.490233 1 driver.go:124] "GRPC error" err="rpc error: code = Internal desc = Could not attach volume \"vol-XXX\" to node \"i-XXX\": context canceled"
I1025 11:08:49.497484 1 controller.go:415] "ControllerPublishVolume: attaching" volumeID="vol-XXX" nodeID="i-XXX"
E1025 11:08:49.629393 1 driver.go:124] "GRPC error" err="rpc error: code = Internal desc = Could not attach volume \"vol-XXX\" to node \"i-XXX\": attachment of disk \"vol-XXX\" failed, expected device to be attached but was attaching"
What you expected to happen?
EBS Volumes to be attached successfully to a node when a PVC is created.
Anything else we need to know?:
I see that actually the volume is attached to Node.
p.s. it doesn't happen with all volumes
Environment
- Kubernetes version: v1.27.4-eks-2d98532
- Driver version: v1.24.0