From 8c3ebff2b90e516d0664791c63e5a4a87e637d54 Mon Sep 17 00:00:00 2001 From: PangQingcheng <916168056@qq.com> Date: Wed, 22 Apr 2026 15:33:54 +0800 Subject: [PATCH] [kata-containers] Update configuration to support kata 3.4.0 (#13077) kata containers added create_container_timeout parameter. If this parameter is missing, the new version of Kata cannot create containers properly and will encounter an error: failed to create shim task: context deadline exceeded --- .../templates/configuration-qemu.toml.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/container-engine/kata-containers/templates/configuration-qemu.toml.j2 b/roles/container-engine/kata-containers/templates/configuration-qemu.toml.j2 index 15511442c..36ea8036d 100644 --- a/roles/container-engine/kata-containers/templates/configuration-qemu.toml.j2 +++ b/roles/container-engine/kata-containers/templates/configuration-qemu.toml.j2 @@ -678,6 +678,16 @@ experimental=[] # (default: false) # enable_pprof = true +{% if kata_containers_version is version('3.4.0', '>=') %} +# Indicates the CreateContainer request timeout needed for the workload(s) +# It using guest_pull this includes the time to pull the image inside the guest +# Defaults to 60 second(s) +# Note: The effective timeout is determined by the lesser of two values: runtime-request-timeout from kubelet config +# (https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/#:~:text=runtime%2Drequest%2Dtimeout) and create_container_timeout. +# In essence, the timeout used for guest pull=runtime-request-timeout