camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Deployment error recovery

Open Evynglais opened this issue 7 months ago • 13 comments

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

Evynglais avatar Apr 21 '26 15:04 Evynglais

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).

squakez avatar Apr 22 '26 06:04 squakez

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).

squakez avatar May 08 '26 14:05 squakez

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!

github-actions[bot] avatar Aug 07 '26 01:08 github-actions[bot]

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 avatar Aug 27 '26 07:08 squakez

@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 avatar Oct 20 '26 12:10 Thundercloud12

@Thundercloud12 feel free to give it a try, but mind that it can require deeper design choice that have to be discussed.

squakez avatar Oct 20 '26 13:10 squakez

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

Thundercloud12 avatar Oct 20 '26 14:10 Thundercloud12

Hi @squakez, if nobody is working on this, can I take it up?

ansh0014 avatar Nov 20 '26 18:11 ansh0014

@ansh0014 I am working on this currently! It's taking a bit time and would take a bit more!

Thundercloud12 avatar Nov 21 '26 16:11 Thundercloud12

@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!

Thundercloud12 avatar Nov 25 '26 02:11 Thundercloud12

/assign

ansh0014 avatar Nov 25 '26 03:11 ansh0014

@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!

squakez avatar Nov 25 '26 07:11 squakez

I'm closing this one as #6850 will supersede it in v3.

squakez avatar Nov 26 '26 14:11 squakez