Kubelet doesn't add "controller-managed-attach-detach" annotation #28710
Closed
Description
Trying to attach EBS volume. However, I get this progression in the Kubelet log:
E0708 20:57:33.674745 4591 goroutinemap.go:155] Operation for "kubernetes.io/aws-ebs/vol-0e0a13f1b3a4a6dbc" failed. No retries permitted until 2016-07-08 20:57:35.6747413 +0000 UTC (durationBeforeRetry 2s). error: Volume "kubernetes.io/aws-ebs/vol-0e0a13f1b3a4a6dbc" (spec.Name: "discovery1") pod "8dbea8c1-454e-11e6-bd68-065b459e106f" (UID: "8dbea8c1-454e-11e6-bd68-065b459e106f") has not yet been added to the list of VolumesInUse in the node's volume status.
[...]
E0708 20:57:35.681614 4591 goroutinemap.go:155] Operation for "kubernetes.io/aws-ebs/vol-0e0a13f1b3a4a6dbc" failed. No retries permitted until 2016-07-08 20:57:39.681607496 +0000 UTC (durationBeforeRetry 4s). error: Volume "kubernetes.io/aws-ebs/vol-0e0a13f1b3a4a6dbc" (spec.Name: "discovery1") pod "8dbea8c1-454e-11e6-bd68-065b459e106f" (UID: "8dbea8c1-454e-11e6-bd68-065b459e106f") is not yet attached according to node status.
[...]
E0708 21:04:02.483431 4591 kubelet.go:1930] Unable to mount volumes for pod "discovery1-ckodq_default(8dbea8c1-454e-11e6-bd68-065b459e106f)": timeout expired waiting for volumes to attach/mount for pod "discovery1-ckodq"/"default". list of unattached/unmounted volumes=[db]; skipping pod
No errors other than those. There's nothing in kube-controller-manager.log
except informational messages about bound PVs and PVCs. I also tried without using PV/PVC.
I've verified that my volume is in the same AZ as the node, and that the instance has IAM permissions to ec2:*
.
Kubernetes 1.3, Ubuntu Xenial.