【containerd错误解决系列】(202303)failed to create shim task, OCI runtime create failed, unable to retrieve OCI runtime error, runc did not terminate successfully
环境
1 2 3 4 5
# cat /etc/redhat-release CentOS Linux release 8.0.1905 (Core)
# uname -r 4.18.0-348.rt7.130.el8.x86_64
问题及现象
pod的状态全部都是ContainerCreating的状态
containerd进程有大量报错,主要有:
failed to create containerd task: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/k8s.io/c4847070fad34a8da9b16b5c20cdc38e28a15cfcf9913d712e4fe60d8c9029f7/log.json: no such file or directory): runc did not terminate successfully: exit status 127: unknown
# yum provides libseccomp Last metadata expiration check: 0:48:39 ago on Tue 28 Mar 2023 01:49:06 PM CST. libseccomp-2.5.2-1.el8.i686 : Enhanced seccomp library Repo : Base Matched from: Provide : libseccomp = 2.5.2-1.el8
libseccomp-2.5.2-1.el8.x86_64 : Enhanced seccomp library Repo : Base Matched from: Provide : libseccomp = 2.5.2-1.el8
# yum install libseccomp-2.5.2-1.el8.x86_64 Last metadata expiration check: 0:49:46 ago on Tue 28 Mar 2023 01:49:06 PM CST. Dependencies resolved. ====================================================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================================================== Installing: libseccomp x86_64 2.5.2-1.el8 Base 71 k
Total download size: 192 k YUM will only download packages for the transaction. Is this ok [y/N]: y Downloading Packages: (1/3): libseccomp-2.5.2-1.0.4.uelc20.01.aarch64.rpm 34 MB/s | 69 kB 00:00 (2/3): libseccomp-devel-2.5.2-1.0.4.uelc20.01.aarch64.rpm 3.1 MB/s | 56 kB 00:00 (3/3): libseccomp-static-2.5.2-1.0.4.uelc20.01.aarch64.rpm 286 kB/s | 67 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 822 kB/s | 192 kB 00:00 Complete! The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'.
[root@ltypaas-xx24b003-zhyw03w temp]# ll total 200 -rw-r----- 1 root root 71080 Jun 15 14:23 libseccomp-2.5.2-1.0.4.uelc20.01.aarch64.rpm -rw-r----- 1 root root 57748 Jun 15 14:23 libseccomp-devel-2.5.2-1.0.4.uelc20.01.aarch64.rpm -rw-r----- 1 root root 68128 Jun 15 14:23 libseccomp-static-2.5.2-1.0.4.uelc20.01.aarch64.rpm [root@ltypaas-xx24b003-zhyw03w temp]#
【containerd错误解决系列】(202303)failed to create shim task, OCI runtime create failed, unable to retrieve OCI runtime error, runc did not terminate successfully
http://example.com/2023/03/28/k8s/【containerd错误解决系列】(202303)failed to create shim task, OCI runtime create failed, unable to retrieve OCI runtime error, runc did not terminate successfully/