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

imagePullPolicy: IfNotPresent may lead to image verification errors #874

Closed
jchaves opened this issue Dec 13, 2022 · 0 comments · Fixed by #925
Closed

imagePullPolicy: IfNotPresent may lead to image verification errors #874

jchaves opened this issue Dec 13, 2022 · 0 comments · Fixed by #925
Labels
bug Something isn't working

Comments

@jchaves
Copy link

jchaves commented Dec 13, 2022

Describe the bug
Current imagePullPolicy for all components: "ifNotPresent"

We believe that the current configuration can lead to inconsistent results (observed already on passes to prod): when it comes to verifying the image of the running container, we have seen it already failing in a couple of instances:

Image verification

To Reproduce
Steps to reproduce the behavior:
It does not happen everytime, but the steps would roughly be:

  1. Prepare to deploy to prod
  2. Observe that the imagestreams get imported
  3. Rollout reported as succesfull
  4. Image verification fails (reporting that the running container is using an old (and sometimes no longer existing in the namespace's Imagestream list) ImageID

We believe this might be caused by some nodes not correctly pulling the image, maybe considering it already present.

Expected behavior
Images should be always pulled to ensure integrity

Screenshots

Affected version (please complete the following information):

  • OpenShift: 4.10
  • OpenDevStack 4.0

Log Output
When the error occurs, the log will output something like

Container '${containerName}' is using image '${runningImageSha}' which differs from defined image '${definedImageSha}'.

To summarize: we think it would be beneficial to switch from "imagePullPolicy: IfNotPresent" to "imagePullPolicy: always" to avoid these inconsistencies, even when this could potentially impact performance.

@jchaves jchaves added the bug Something isn't working label Dec 13, 2022
@braisvq1996 braisvq1996 added this to To Do in ODS Maintenance via automation May 26, 2023
@braisvq1996 braisvq1996 moved this from To Do to In Progress in ODS Maintenance Jun 2, 2023
ODS Maintenance automation moved this from In Progress to Done Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant