Set image upload hash timeout to 24 hours

We've discovered that sometimes hashing images as part of the upload
process takes longer than the old default of 10 minutes. Since job
timeouts already limit total runtime of these tasks let's go ahead and
set this value to a large enough value by default to avoid problems with
this timeout if they take a little longer than usual. This way jobs
timeout and are more easily addressable by default than needing to fine
tune this role's parameters.

Note, we considered dropping the timeout entirely but async Ansible
tasks appear to always need a timeout.

Change-Id: I551e6d78feb6ae89cd3f678794306ed55acf8e94
This commit is contained in:
Clark Boylan
2025-12-02 09:12:54 -08:00
parent e566d354c9
commit 8081e7652c
4 changed files with 6 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ zuul-launcher expects.
`false`.
.. zuul:rolevar:: upload_image_s3_hash_timeout
:default: 600
:default: 86400
The async timeout for md5/sha256 image hash tasks.

View File

@@ -4,5 +4,6 @@ upload_image_s3_filename: '{{ build_diskimage_image_root }}/{{ build_diskimage_i
upload_image_s3_name: '{{ zuul.build }}-{{ build_diskimage_image_name | default(zuul.image_build_name) }}.{{ upload_image_s3_extension }}'
upload_image_s3_extension: '{{ upload_image_s3_format }}'
upload_image_s3_compress_image: true
upload_image_s3_hash_timeout: 600
# 24 hours
upload_image_s3_hash_timeout: 86400
upload_image_s3_export_s3_url: false

View File

@@ -72,6 +72,6 @@ expects.
should be set to `false`.
.. zuul:rolevar:: upload_image_swift_hash_timeout
:default: 600
:default: 86400
The async timeout for md5/sha256 image hash tasks.

View File

@@ -4,4 +4,5 @@ upload_image_swift_filename: '{{ build_diskimage_image_root }}/{{ build_diskimag
upload_image_swift_name: '{{ zuul.build }}-{{ build_diskimage_image_name | default(zuul.image_build_name) }}.{{ upload_image_swift_extension }}'
upload_image_swift_extension: '{{ upload_image_swift_format }}'
upload_image_swift_compress_image: true
upload_image_swift_hash_timeout: 600
# 24 hours
upload_image_swift_hash_timeout: 86400