-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Way to specify number of image pull attempts and the pause between attempts #19770
Comments
|
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770 Closes: rpm-software-management#1200
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770 Closes: rpm-software-management#1200
Move podman_check_native_image_architecture() to the later stage, so we don't retry upon architecture mismatch. Relates: containers/podman#19770 Closes: #1200
A friendly reminder that this issue had no activity for 30 days. |
I think something like this would be nice. I could see a configuration option for setting things globally and then CLI options for overriding that configuration. Right now we are dealing with quay CDN DNS flakes and many others have dealt with it too:
It would be nice if say |
Fixes: containers#19770 Signed-off-by: Daniel J Walsh <[email protected]>
Do you think this would be better to be just containers.conf then here? |
Not sure. I did mention in #19770 (comment) that:
Which still makes sense to me. A config option sets the default value and then runtime CLI options override that. So maybe the answer to your question is both |
/me points at #19770 (comment) again |
I think config file options make good sense only with Podman’s config modules; otherwise, it is inherently operation-specific, even on “single-purpose” machines (like OpenShift nodes) if the machine setup also happens by pulling images. |
@mtrmac could the config file option just be set to default to the current behavior today and only people who need to change it change it? i.e. I could see the default being no retry at all, but then if someone has flaky DNS or some other intermittent networking issues they could change the global default on that node without having to update actual code that is doing the container pull operations (which either they might not own or could take time). |
Why not, it happens to be up to other people to maintain that :) I think this immediate conversation was a request about retry in |
Yeah. I think I was taking it back to the original description where they said:
So I think they were wanting both. Now wanting it and getting it are two different things. I'm happy either way (after all I'm not the one doing the work), but I argue it would be better to have both. |
Right now, for podman pull and build the default is 3 and delay of 2s. I can attempt to add support for containers.conf to handle this. Then it will need to be vendored into buildah and podman, and have podman build, and podman pull default to the containers.conf setting, finally podman run and podman kube play would need to start supporting it, then we can talk about adding options.
|
It’s the other way around - adding CLI options can be done within Podman itself without dealing with all the dependencies. IMHO it’s both more important and easier. |
Feature request description
Currently, there's just a default, 3 attempts with 1s delay between attempts:
https://github.com/containers/common/blob/e028741ef77fdfa3ae261b9d23cdd50253d586c4/libimage/copier.go#L27-L30
It would be nice to have this configurable.
Forwarded-from: #14359
Needed by: rpm-software-management/mock#1191
Suggest potential solution
If we could have a configuration-file option rather than a command-line option (or both ideally)? The thing is that we could configure the new option without checking if Podman supports this or not.
Have you considered any alternatives?
We can implement re-tries (also?) in Mock. How likely we can get this feature into Podman on RHEL8+, and what would be the ETA? We need to some plan for Mock and Copr where we started to rely on Podman pull functionality, and we need to have this rather quickly.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: