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

Containers: retry on pulling image for test privileged mode #17909

Conversation

ilausuch
Copy link
Contributor

@ilausuch ilausuch commented Oct 4, 2023

@ilausuch ilausuch force-pushed the improve_test_containers_privileged_2 branch from f58250c to 4446cf0 Compare October 4, 2023 11:20
@@ -25,6 +26,7 @@ sub run {
reset_container_network_if_needed($runtime);

my $image = "registry.suse.com/bci/bci-base:latest";
script_retry("$runtime pull $image", delay => 60, retry => 3);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
script_retry("$runtime pull $image", delay => 60, retry => 3);
script_retry("$runtime pull $image", timeout => 300, delay => 120, retry => 3);

The default timeout for pulling is 30 seconds, and that might be too low. Let's increase the default timeout.

@ilausuch ilausuch force-pushed the improve_test_containers_privileged_2 branch from 4446cf0 to 8254008 Compare October 4, 2023 12:17
@clanig
Copy link
Contributor

clanig commented Oct 4, 2023

Thanks. The code you changed works as expected and I would approve the change.
But docker run does not work. The output does appear to be very helpful... Maybe we need to reproduce it manually if it is reproducible.

@ilausuch
Copy link
Contributor Author

ilausuch commented Oct 5, 2023

I moved this approach to an other PR to unify solutions #17921

@ilausuch ilausuch closed this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants