Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image build layer cache misses ignore retry options #5490

Open
evanlok opened this issue Apr 26, 2024 · 0 comments
Open

Image build layer cache misses ignore retry options #5490

evanlok opened this issue Apr 26, 2024 · 0 comments

Comments

@evanlok
Copy link

evanlok commented Apr 26, 2024

Description

Building an image with --cache-from REGISTRY and --retry 0 still attempts to pull the missing layer 3 times. The --retry-delay option is also ignored.

Steps to reproduce the issue:

  1. Build an image with caching enabled and retries disabled: buildah build --layers --cache-from REGISTRY --retries 0 .
  2. Observe that it tries to fetch missing layers from the cache 3 times with exponential backoff

Describe the results you received:

Cache misses triggered retries

Describe the results you expected:

No retries should occur when cached layer is missing.

Output of rpm -q buildah or apt list buildah:

n/a (built from source)

Output of buildah version:

buildah version 1.35.3 (image-spec 1.1.0, runtime-spec 1.1.0)

Output of podman version if reporting a podman build issue:

n/a

Output of cat /etc/*release:

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Output of uname -a:

Linux 053a9acc6cd8 6.6.22-linuxkit #1 SMP Fri Mar 29 12:21:27 UTC 2024 x86_64 GNU/Linux

Output of cat /etc/containers/storage.conf:

n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant