-
Notifications
You must be signed in to change notification settings - Fork 3
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
seiso should not raise error if configuration has already been deleted #42
Comments
Hi. That's interesting, because we are getting the list of candidates directly from the cluster. It seems like at the time where we are querying the cluster and deleting it after filtering, the candidate has been already deleted.... This looks like a race condition. The fix should be easy, but how exactly do you use Seiso? what is the value of SEISO_OLDER_THAN and SEISO_KEEP_AT_MOST? Do you call seiso immediately after doing a deployment? |
Depending on which environment is targeted, we've 3 different pair of values. When I had this error, it was with the "development" environment configured with:
seiso is run before any new deployment is run, but indeed, we can have some race condition with our integration and/or production environment launch the "seiso + deploy" job. Maybe we should only run seiso for the development environment ? Our gitlab-ci was inspired by the one provided by the appuio's example. |
Hm strange, if it runs before the new deployment, I cannot image another reason why there's a race condition without having a closer look into your environment. In any case, if you are able to wait a bit, the linked PR should ignore not-found-errors (but it will still be printed/logged as "Deleted"). That should remove the need to adapt your pipeline ™️ |
Cool, many thanks for the PR :-) |
We have released 0.7.1 now, please check if that works for you |
Hello,
Some times, seiso raises this error when running with Gitlab CI and docker image
appuio/oc:v3.11
:I think seiso could raise a Warning in this case but not an error, as the goal is to delete a config and it seems it's already deleted.
The text was updated successfully, but these errors were encountered: