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

pod creation error using cri-containerd #672

Description

@kunalkushwaha

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions