CreateContainerError: context deadline exceeded unpacking an OCI tarball #3465
Unanswered
jarrillaga
asked this question in
Q&A
Replies: 1 comment
-
|
Googling and ChatGPTing (new word? :D) says this might help: Worths a try. If it works, I guess you can run it in a stage in the kairos config. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey community :)
I’m running Kairos in an air-gapped environment and use a
run.shscript in the install stage to copy a OCI image tarball (~310 MB) into/var/lib/rancher/k3s/agent/images/omnibus-init.tar. Althoughctr images lsconfirms the image is present, containerd repeatedly times out while unpacking and mounting its many overlayfs layers, hitting the default CRI deadline and failing with:CreateContainerError: context deadline exceededLogs & Observations
Kubelet / K3s
CreateContainer in sandbox from runtime service failed: rpc error: code = DeadlineExceeded desc = context deadline exceededmsg="Failed to unpack image layer" error="failed to extract layer sha256:xxxx...: no such file or directory"containerd snapshots: ~100 active overlayfs layers
dmesg shows no overlayfs mount errors
iostat / top reveal high I/O and CPU load during boot
I can confirm that the tarball is well formed because I was able to run it manually from command line.
Problem
The init-job container never starts because containerd can’t finish unpacking and mounting all the OCI image layers before Kubernetes’s default timeout.
Question
Is there a built-in Kairos or K3s feature to pre-unpack or pre-mount large OCI image tarballs during the install phase so that init-job containers can start reliably on first boot? Any best practices or recommended workflow for handling large, air-gapped images would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions