-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to AttachVolume, expected device to be attached but was attaching #1801
Comments
Do volumes get stuck in this state indefinitely (or for an abnormally long time)? It's usual to see this message if a volume is taking a long time to attach on EBS's side, but it should eventually fix itself after the volume becomes attached. |
on AWS console I see that volume is attached to the node, but the controller keeps trying to attach it |
seems like the problem was with reaching limit of EBS Volumes per Node. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello, Any other workaround besides a manual intervention? Can this be consider as a feature request to have EBS CSI Controller to throw an error or better yet have a way to notify the scheduler to re-schedule the pod onto a different worker node? |
I want to deploy postgres on k8s cluster made by Kubeadm and getting the issue "E0718 13:31:52.030062 1 batcher.go:161] "execute: error executing batch" err="error listing AWS instances: operation error EC2: DescribeInstances, https response error StatusCode: 0, RequestID: , canceled, context deadline exceeded" And also I have created pv and pvc which is bounded with the help of ebs-csi-driver and I have deployed csi friver using helm. "ubuntu@k8smaster: AND I have correctly configured the iam role and attach to all nodes can any one tell what is the issue ? |
@divya898 Deploying the driver with SDK debug mode enabled and taking a look at the logs once again will be very helpful for debugging the issue. |
@torredil pod/ebs-csi-controller-86957f8467-785bg 5/5 Running 0 5h54m and I can able to bound with pvc and pv Events: Normal Scheduled 72s default-scheduler Successfully assigned app/postgres-777d8c6765-d2tct to k8sworker2.example.net Logs of CSI controller pod :- E0718 17:06:24.989148 1 batcher.go:161] "execute: error executing batch" err="error listing AWS instances: operation error EC2: DescribeInstances, https response error StatusCode: 0, RequestID: , canceled, context deadline exceeded" ubuntu@k8smaster: ubuntu@k8smaster:~/application/postgres$ k logs ebs-csi-node-4jkrz --tail=100 -n kube-system ubuntu@k8smaster:~/application/postgres$ k logs ebs-csi-node-kk6qw --tail=100 -n kube-system ubuntu@k8smaster:~/application/postgres$ k logs ebs-csi-node-zrljn --tail=100 -n kube-system Please tell what i am missing ? |
@divya898 It looks like SDK debug logging has not been enabled, you can do so via the
you should be able to see more detailed information that will help troubleshoot why the HTTP request is timing out directly in the CSI controller logs:
|
Hi @torredil |
@divya898 Glad to hear 👍 Let us know if you run into any other issues and we'll be happy to help. |
/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:
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
The text was updated successfully, but these errors were encountered: