Deployment error recovery
Bug description
Hi,
I've noticed some issues with build recovery. Firstly, it's not configurable (given the TODO in recovery.go); secondly, the defaults are very quick, and also mis-configured (min > max). Finally, it should give the option to backoff indefinitely.
I'm working on a PR that addresses these.
Thanks, Evyn
Camel K or runtime version
2.10.0
I think this feature should be removed instead, see #6575. The problem is that a failing build is likely to fail indefinitely, so, it does not make sense to start over again. What I think you're seeing is a problem within deployment, for which, a new reconciliation should be rescheduled within some time when it fails for any reason (i.e., some missing resource like I understand it can be your use case).
The entire discussion available in this chat thread: https://camel.zulipchat.com/#narrow/channel/257299-camel-k/topic/Integration.20Builder.20Recovery/with/593474397
The idea is that whenever there is a "deployment" error (ie, a failure on trait application for any reason), we should apply an esponential backoff retry. We may need to distinguish the generic "Error" state we are returning now with something more specific, "DeploymentError" and "RuntimeError". With this error definition we can provide more easily a controller handler only for the former kind of error (as "RuntimeError" are already managed by reconciliation triggered by Pod restart).
This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!
To reproduce the problem, we can use https://github.com/apache/camel-k/issues/6787 - when we fix by adding the pull secret, the deployment won't redeploy automatically and it has to be forced to rebuild.
@squakez okay so i have gone through it and the implementation plan roughly is first distinguishing between different error types; than similar to how build has error recovery introduce recovery tracking here. If you allow i can take this issue up
@Thundercloud12 feel free to give it a try, but mind that it can require deeper design choice that have to be discussed.
Yes @squakez; I am aware I would make a draft pr where I think we can discuss that honestly I think this can be an opportunity for me to have a better understanding of this repo
Hi @squakez, if nobody is working on this, can I take it up?
@ansh0014 I am working on this currently! It's taking a bit time and would take a bit more!
@squakez hey so if you can please remove the assignment on me, i have some work that i am committed to and would not be able to finish it in the coming days as things are looking, sorry for letting you down!
/assign
@squakez hey so if you can please remove the assignment on me, i have some work that i am committed to and would not be able to finish it in the coming days as things are looking, sorry for letting you down!
Sure, thanks for the collaboration and no worries at all!
I'm closing this one as #6850 will supersede it in v3.