-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
Pods using EBS-backed PVC sometimes get stuck. #38301
Comments
@exarkun the log you posted starting from 1207 16:30:01.276015, do you have older logs before that time? Thanks! |
Probably. How much older would you like? |
Basically starting from when you run the test |
Hm. I picked a starting point just before the |
All three deployment updates since I filed this issue have gotten stuck. |
Note that while nothing is mounted at the /var/lib/kubelet/pods/... location, the EBS volume is attached to the instance and mounted elsewhere on the filesystem:
Also noteworthy: restarting kubelet on the affected node is sufficient to un-stuck the pod. |
Ah, thanks. I'll try out 1.4.7 - probably tomorrow - and report back. |
I've upgraded to 1.4.7. The error hasn't recurred since then. I'll close this for now. If it happens again I can re-open. Thanks. |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):
No.
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
unmount
umount
Error checking if mountpoint
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT.
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.6", GitCommit:"e569a27d02001e343cb68086bc06d47804f62af6", GitTreeState:"clean", BuildDate:"2016-11-12T05:22:15Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.6", GitCommit:"e569a27d02001e343cb68086bc06d47804f62af6", GitTreeState:"clean", BuildDate:"2016-11-12T05:16:27Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Environment:
uname -a
):Linux ip-172-20-84-61 4.4.26-k8s Unit test coverage in Kubelet is lousy. (~30%) #1 SMP Fri Oct 21 05:21:13 UTC 2016 x86_64 GNU/LinuxWhat happened:
I created a storageclass and a new PVC referencing it:
And I updated my deployment to include a volume using this PVC and updated the deployment's template spec so that one of the containers would mount this volume. Then I deployed this with
kubectl apply -f ...
. I make some tweaks and repeated this operation a few times. Behavior was as expected (EBS-backed PV created, pod started, container had PV mounted in it, data persisted across deployment updates).On the last deployment update (in which I changed the image used by some of the containers), the new pod failed to come up. The web ui reported
What you expected to happen:
I expected a new pod to be created and its containers to start, and for the container using the log-gatherer-data volume to have the data it had before the deployment update.
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
There are many mount/unmount errors in the kubectl journalctl log, attached.
logs.txt
The EBS volume backing the PVC is indeed attached to the node.
The mount state is:
The directory referenced by the stat error in the logs is empty:
The text was updated successfully, but these errors were encountered: