Files
infix/patches/podman/4.5.0/0001-disable-pull-retry.patch
T
Joachim Wiberg bb1a656a05 confd: drop fragile asynchronous container create/delete using execd
This is a complete redesign of how the system creates/deletes containers
from the running-config.  Containers are now removed synchronously from
confd before any interfaces they may be using are removed, and created
in parallel, using a Finit task, well after confd has finished setting
up interfaces.

The logic previously provided by execd to retry container create on any
route/address changes, or periodically every 60 seconds, is now handled
by a new 'setup' command in the container wrapper script.

Additionally, container create is now split in wget/curl/podman pull of
the image and 'podman create'.  This to both consolidate image fetching
and improve user feedback since most of the retry logic (above) revolves
around the image download.

Fixes #835

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-11-28 16:36:56 +01:00

23 lines
768 B
Diff

This patch disables the default "podman pull" retry value, which is not
used by Infix. Instead, the container wrapper script retries on network
related changes, or every 60 seconds.
As of podman v5.0.0 a '--retry=NUM' has been added to the podman create,
run, and pull commands. However, CNI is no longer supported, and a lot
of other breaking changes have been made, eg., output of podman inspect.
So there's a lot of work to upgrade.
-- Joachim
--- a/vendor/github.com/containers/common/libimage/copier.go 2023-04-14 15:28:20.000000000 +0200
+++ b/vendor/github.com/containers/common/libimage/copier.go 2024-11-16 13:05:42.207641898 +0100
@@ -24,7 +24,7 @@
)
const (
- defaultMaxRetries = 3
+ defaultMaxRetries = 0
defaultRetryDelay = time.Second
)