-
Notifications
You must be signed in to change notification settings - Fork 348
failed to create containerd task #1082
Comments
checked that the |
@keyingliu This shouldn't happen. We have an integration test testing this behavior https://github.com/containerd/cri/blob/master/integration/pod_hostname_test.go#L89. What image are you using? It could be related to your image. |
@Random-Liu I just picked one of our nodes, in /var/lib/containerd/io.containerd.grpc.v1.cri/sandboxes, run
Take care the sandbox: |
@keyingliu I see... Did you update containerd with all existing services running? The hostname change is not a backward compatible change... If you have an old sandbox running, there won't be hostname file. In this case, it is fine to not have hostname in container, but at least container should be able to start. BTW, for production environment, it is always recommended to drain the node before updating critical node components. :) |
@keyingliu See #1085. Will include it in 1.2.5. |
@Random-Liu Thanks for root cause analysis and fix. |
@Random-Liu When will containerd 1.2.5 be released? |
Some of the containers cannot create with following error, the containerd we are running included PR #1072:
I can see the ${container_id}/hostname is a directory in the host, but it should be a file.
The text was updated successfully, but these errors were encountered: