runv icon indicating copy to clipboard operation
runv copied to clipboard

pod creation error using cri-containerd

Open kunalkushwaha opened this issue 7 years ago • 3 comments

runv works well with containerd (master branch), but using cri-containerd, pod/sandbox creation fails.

runv is configured with containerd as per runv-with-containerd-docker.md

Following error comes

$ sudo crictl -r /run/containerd/containerd.sock  runp sandbox_config.json                          
FATA[0000] run pod sandbox failed: rpc error: code = Unknown desc = failed to start sandbox container: failed to create containerd task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/k8s.io/b54bd84bbfde1b1aee3098498b235c5e3210e0bc4d7f7b7f3f3a6712cc7acfef/log.json: no such file or directory): runv did not terminate sucessfully: unknown 

Config file for sandbox

$ cat sandbox_config.json    
{
        "metadata": {
                "name": "podsandbox1",
                "uid": "powertest-test-crio",
                "namespace": "powertest.test.crio",
                "attempt": 1
        },
        "hostname": "crioctl_host",
        "log_directory": "",
        "dns_config": {
                "searches": [
                        "8.8.8.8"
                ]
        },
        "port_mappings": [],
        "resources": {
                "cpu": {
                        "limits": 3,
                        "requests": 2
                },
                "memory": {
                        "limits": 50000000,
                        "requests": 2000000
                }
        },
        "labels": {
                "group": "test"
        },
        "linux": {
                "cgroup_parent": "/Burstable/pod_123-456",
                "security_context": {
                        "namespace_options": {
                                "host_network": false,
                                "host_pid": false,
                                "host_ipc": false
                        },
                        "selinux_options": {
                                "user": "system_u",
                                "role": "system_r",
                                "type": "svirt_lxc_net_t",
                                "level": "s0:c4,c5"
                        }
                }
        }
}


kunalkushwaha avatar Mar 09 '18 04:03 kunalkushwaha

@laijs @teawater @bergwolf Please take a look :-)

resouer avatar May 14 '18 02:05 resouer

related with the infra-container?

gnawux avatar May 14 '18 03:05 gnawux

@gnawux I am trying to test the kata-containers integration with containerd.

I am trying to follow the steps provided in containerd release note, But it doent work.

Since I am using crictl I am trying to use container_configs and sandbox_configs directly instead of using pod.yaml file. (It is already tested for containerd + runc & cri-o + runc)

If there is reference and steps of testing this integration is avaiable, it would be really nice. esp values in /etc/containerd/config.toml file etc

kunalkushwaha avatar May 14 '18 04:05 kunalkushwaha