Skip to content

failed to delete container with error open pidfd: Invalid argument #709

@babykart

Description

@babykart

Hi,

I'm experiencing random stuck on a delete operation of a container with the following error:

Jul 29 11:35:09 lystenia k3s[4952]: E0729 11:35:09.158193    4952 kuberuntime_gc.go:146] Failed to remove container "c09ad290b6da18adb367f3fd71c41f9cf8fab2c80a76ccaf2ec60bf531137836": rpc error: code = Unknown desc = failed to delete container c09ad290b6da18adb367f3fd71c41f9cf8fab2c80a76ccaf2ec60bf531137836: `/usr/bin/crun --root /run/runc delete --force c09ad290b6da18adb367f3fd71c41f9cf8fab2c80a76ccaf2ec60bf531137836` failed: open pidfd: Invalid argument

I only have these errors on Azure nodes:

kubectl get nodes -o wide
NAME       STATUS   ROLES                  AGE   VERSION        INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION     CONTAINER-RUNTIME
lystenia   Ready    control-plane,master   80d   v1.20.9+k3s1   10.90.1.4     <none>        Ubuntu 18.04.5 LTS   5.4.0-1055-azure   cri-o://1.20.3

I'm using crun static binary downloaded at https://github.com/containers/crun/releases/tag/0.20.1

crun --version
crun version 0.20.1
commit: 38271d1c8d9641a2cdc70acfa3dcb6996d124b3d
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL

Let me know if you need more information from my environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions