Skip to content

Conversation

@ptrivedi
Copy link
Contributor

@ptrivedi ptrivedi commented May 4, 2022

Description

Image pull retry for tink-worker image

Why is this needed

There could be races where linuxkit network or dns may not have been
fully set up and functional yet and image pull fails because of that.

Fixes: #

Implement image pull retry loop for tink-worker image. This loop attempts an image pull every 5 seconds, upto 10 times

How Has This Been Tested?

Tested by re-running a full provisioning workflows on bare metal server and simulate image pull failures artificially to test out the retry logic.

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@ptrivedi ptrivedi force-pushed the tink-worker-image-pull-retry branch 2 times, most recently from cce2cb3 to c4da6b1 Compare May 4, 2022 16:01
jacobweinstock
jacobweinstock previously approved these changes May 4, 2022
Copy link
Member

@jacobweinstock jacobweinstock left a comment

Choose a reason for hiding this comment

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

Thank you! seems reasonable and improved from what we have!
CC @thebsdbox , @tstromberg , @mmlb

@damdo
Copy link

damdo commented May 20, 2022

Looks like it has been update now, might need a re-review.

@ptrivedi ptrivedi force-pushed the tink-worker-image-pull-retry branch from 3af9d6f to 3b45f85 Compare May 26, 2022 00:21
@ptrivedi
Copy link
Contributor Author

@mmlb: resolved comments

@jacobweinstock jacobweinstock force-pushed the tink-worker-image-pull-retry branch from 3b45f85 to 8fbcec5 Compare June 17, 2022 16:27
@ptrivedi ptrivedi force-pushed the tink-worker-image-pull-retry branch 2 times, most recently from 1f528f3 to b8e5458 Compare September 16, 2022 21:41
@ptrivedi ptrivedi force-pushed the tink-worker-image-pull-retry branch from b8e5458 to 13aff01 Compare September 20, 2022 17:38
There could be races where linuxkit network or dns may not have been
fully set up and functional yet and image pull fails because of that.

Signed-off-by: Pooja Trivedi <tripooja@amazon.com>
@ptrivedi ptrivedi force-pushed the tink-worker-image-pull-retry branch from 13aff01 to 6a6ac91 Compare September 20, 2022 22:36
@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Sep 20, 2022
@jacobweinstock jacobweinstock requested review from mmlb and removed request for mmlb September 20, 2022 23:14
@ptrivedi
Copy link
Contributor Author

@mmlb: do the honors please

@mergify mergify bot merged commit 7b0ffaf into tinkerbell:main Sep 21, 2022
@ptrivedi ptrivedi deleted the tink-worker-image-pull-retry branch September 21, 2022 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Signal to Mergify to merge the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants