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

Integration Kit image build runs into an endless loop when a lower level image can't be pulled from Registry #3266

Closed
catshout opened this issue May 12, 2022 · 3 comments
Labels
area/build-operator Related to the internal image build operator kind/bug Something isn't working status/waiting-for-feedback Needs some feedback

Comments

@catshout
Copy link

Hi all.

We're still working with Camel-K 1.8.0. We did experience that an Integration Kit build runs into an endless loop when a lower level image can't be pulled from Registry. The build will be tried again and again.

We must delete the Operator, afterwards the Integration Kit build was running properly again.

I'd expect in such a case (lower level image not found), that the Operator does have a mitigation strategy built in (e.g. build the Integration Kit based on an other one existing or from scratch).

So far the question, does the Integration Kit build process be re-worked in 1.9.x. And .. we'd expect a bit more detailed log entries in the Operator logs.

Best
Gerald

@squakez
Copy link
Contributor

squakez commented May 13, 2022

I'm marking this as a bug as we should detect the problem and notify somehow to the user instead of looping infinetely. Maybe a retry with exponential backoff for some time, afterwards the build should be set in error state. We may solve this in 1.9.x and maybe backport to 1.8.x, dependending on when someone will have the availability to contribute on it.

@squakez squakez added kind/bug Something isn't working area/build-operator Related to the internal image build operator labels May 13, 2022
@catshout
Copy link
Author

Tx @squakez.

We're working with named Integration Kit images and references in the Integrations to one (in such a case re-usable) Integration Kit.

Maybe it's also an approach to make the automated layering configurable. For a better control of the artefacts we'd like to have a created named Integration Kit self-contained, means not built up on any existing one. Finally we'd have up to max 20 Integration Kits for a large number of Integrations, so in our case the layering won't have an advantage.

@squakez
Copy link
Contributor

squakez commented Aug 8, 2022

I tried to reproduce this issue but did not manage to have it failing. If I deleted an intermediate image layer, the spectrum tool is able to rebuild it as far as I could see (was the publishing strategy used Spectrum?). Tested both 1.8 and 1.9. Can you please provide a step by step reproducer?

@squakez squakez added the status/waiting-for-feedback Needs some feedback label Aug 9, 2022
@squakez squakez closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-operator Related to the internal image build operator kind/bug Something isn't working status/waiting-for-feedback Needs some feedback
Projects
None yet
Development

No branches or pull requests

2 participants