-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Example crictl run/runp fail on a machine with a running k8s CP #1696
Comments
Reading this I don’t think this is a bug with crictl but with containerd. Your version is pretty old so I’d maybe ask containerd on this one. |
Can you also provide the contents of |
I have updated the description to show the content of the json files. I've also corrected the 1st link to the correct runp example. I have downloaded crictl version 1.31.1, which results in an identical error message. Looks like the doc shows the same examples at the time #1302 was merged (see here). I was not setting |
@akhilerm @kannon92 I got the same error using the # containerd --version
containerd github.com/containerd/containerd 1.7.23 57f17b0a6295a39009d861b89e3b3b87b005ca27 |
I got one step further by using the following pod json # cat pod-config.json
{
"metadata": {
"name": "nginx-sandbox",
"namespace": "default",
"attempt": 1,
"uid": "hdishd83djaidwnduwk28bcsb"
},
"log_directory": "/tmp",
"linux": {
"cgroup_parent": "system.slice"
}
}
# crictl runp pod-config.json
469d6af600fe7991432a7067b5f28db77bd7c15f45befd571b0273beb7df38c6 But this sandbox ID wasn't visible and couldn't be used for # crictl pods --id 469d6af600fe7991432a7067b5f28db77bd7c15f45befd571b0273beb7df38c6
POD ID CREATED STATE NAME NAMESPACE ATTEMPT RUNTIME
# crictl create 69d6af600fe7991432a7067b5f28db77bd7c15f45befd571b0273beb7df38c6 ctr.json pod-config.json
E0114 09:50:18.822738 3887719 remote_runtime.go:319] "CreateContainer in sandbox from runtime service failed" err="rpc error: code = NotFound desc = failed to find sandbox id \"69d6af600fe7991432a7067b5f28db77bd7c15f45befd571b0273beb7df38c6\": not found" podSandboxID="69d6af600fe7991432a7067b5f28db77bd7c15f45befd571b0273beb7df38c6"
FATA[0000] creating container: rpc error: code = NotFound desc = failed to find sandbox id "69d6af600fe7991432a7067b5f28db77bd7c15f45befd571b0273beb7df38c6": not found Sometimes I see the pod in This is independent of running OS Amazon Linux 2 (cgroupv1 based) or AL2023 (cgroupv2 based). |
Using |
What happened:
On a Linux system with a successfully running single node Kubernetes control plane, with containerd, I am using the example run/runp commands here and here, and I am getting the following errors:
and
Content of the files (copied from above links):
What you expected to happen:
The examples to work.
How to reproduce it (as minimally and precisely as possible):
Installed containerd version 1.6.12 through apt. crictl is v1.31.1 and v1.28.0.
The config.toml was generated using:
Which means it uses
SystemdCgroups = true
.Anything else we need to know?:
Cilium with kube-proxy is installed on the healthy Kubernetes control plane.
In case this is important:
Environment:
cat /etc/os-release
): Debian GNU/Linux rodeteuname -a
): 6.9.10-1rodete5-amd64The text was updated successfully, but these errors were encountered: