Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

pod creation error using cri-containerd #672

Open
kunalkushwaha opened this issue Mar 9, 2018 · 3 comments
Open

pod creation error using cri-containerd #672

kunalkushwaha opened this issue Mar 9, 2018 · 3 comments

Comments

@kunalkushwaha
Copy link

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"
                        }
                }
        }
}


@resouer
Copy link
Collaborator

resouer commented May 14, 2018

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

@gnawux
Copy link
Member

gnawux commented May 14, 2018

related with the infra-container?

@kunalkushwaha
Copy link
Author

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants