From 2f3f1d7e6517f510441f3bf3cdbb6bb8058dc8ed Mon Sep 17 00:00:00 2001 From: peterw <12556909+pedro-peter@users.noreply.github.com> Date: Sun, 16 Nov 2025 03:53:37 +0000 Subject: [PATCH] crio: add option pull_progress_timeout (#12555) --- roles/container-engine/cri-o/defaults/main.yml | 2 ++ roles/container-engine/cri-o/templates/crio.conf.j2 | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/roles/container-engine/cri-o/defaults/main.yml b/roles/container-engine/cri-o/defaults/main.yml index 7589505f5..6bdd5ebd0 100644 --- a/roles/container-engine/cri-o/defaults/main.yml +++ b/roles/container-engine/cri-o/defaults/main.yml @@ -32,6 +32,8 @@ crio_registry_auth: [] crio_seccomp_profile: "" crio_selinux: "{{ (preinstall_selinux_state == 'enforcing') | lower }}" crio_signature_policy: "{% if ansible_os_family == 'ClearLinux' %}/usr/share/defaults/crio/policy.json{% endif %}" +# Set the pull progress timeout +crio_pull_progress_timeout: "10s" # Override system default for storage driver # crio_storage_driver: "overlay" diff --git a/roles/container-engine/cri-o/templates/crio.conf.j2 b/roles/container-engine/cri-o/templates/crio.conf.j2 index 524555dbe..53fc01501 100644 --- a/roles/container-engine/cri-o/templates/crio.conf.j2 +++ b/roles/container-engine/cri-o/templates/crio.conf.j2 @@ -348,6 +348,12 @@ signature_policy = "{{ crio_signature_policy }}" # ignore; the latter will ignore volumes entirely. image_volumes = "mkdir" +# The timeout for an image pull to make progress until the pull operation gets +# canceled. This value will be also used for calculating the pull progress interval +# to pull_progress_timeout / 10. Can be set to 0 to disable the timeout as well as +# the progress output. +pull_progress_timeout = "{{ crio_pull_progress_timeout }}" + # The crio.network table containers settings pertaining to the management of # CNI plugins. [crio.network]