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 container build errors are absent from the log messages #2306

Closed
orpiske opened this issue May 18, 2021 · 2 comments
Closed

Integration container build errors are absent from the log messages #2306

orpiske opened this issue May 18, 2021 · 2 comments
Assignees
Labels
area/build-operator Related to the internal image build operator kind/bug Something isn't working
Milestone

Comments

@orpiske
Copy link
Contributor

orpiske commented May 18, 2021

In some cases if the builder fails (i.e.: if it fails to pull the base image), the information about this failure is absent from the logs. This makes debugging build errors much more complicated.

Log snippet on a build that failed because it could not pull the base image:

{"level":"info","ts":1621320008.451126,"logger":"camel-k","msg":"spectrum - 2021/05/18 06:40:08 Pulling base image localhost:5000/openjdk11:slim (insecure=true)..."}
{"level":"info","ts":1621320008.4511755,"logger":"camel-k","msg":"spectrum - 2021/05/18 06:40:08 No matching credentials were found, falling back on anonymous"}
{"level":"info","ts":1621320008.6820612,"logger":"camel-k.controller.build","msg":"Build state transition","request-namespace":"default","request-name":"kit-c2hm1tlcbeqlprug5nn0","api-version":"camel.ap
ache.org/v1","kind":"Build","ns":"default","name":"kit-c2hm1tlcbeqlprug5nn0","phase":"Failed"}
 {"level":"info","ts":1621320008.6868963,"logger":"camel-k.controller.build","msg":"Reconciling Build","request-namespace":"default","request-name":"kit-c2hm1tlcbeqlprug5nn0"}
{"level":"info","ts":1621320008.687199,"logger":"camel-k.controller.integrationkit","msg":"Reconciling IntegrationKit","request-namespace":"default","request-name":"kit-c2hm1tlcbeqlprug5nn0"}
{"level":"info","ts":1621320008.6882634,"logger":"camel-k.controller.integrationkit","msg":"Invoking action build-submitted","request-namespace":"default","request-name":"kit-c2hm1tlcbeqlprug5nn0","api-
version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"default","name":"kit-c2hm1tlcbeqlprug5nn0"}
{"level":"info","ts":1621320008.6882765,"logger":"camel-k.controller.build","msg":"Invoking action error-recovery","request-namespace":"default","request-name":"kit-c2hm1tlcbeqlprug5nn0","api-version":"
camel.apache.org/v1","kind":"Build","ns":"default","name":"kit-c2hm1tlcbeqlprug5nn0"}
@orpiske orpiske self-assigned this May 18, 2021
@orpiske orpiske added kind/bug Something isn't working area/build-operator Related to the internal image build operator labels May 18, 2021
@orpiske orpiske added this to the 1.5.0 milestone May 18, 2021
@orpiske
Copy link
Contributor Author

orpiske commented May 18, 2021

I'll send a PR for this one.

This should be handled by #2269. If not, I'll send the patch on top of that.

orpiske added a commit to orpiske/camel-k that referenced this issue May 18, 2021
orpiske added a commit to orpiske/camel-k that referenced this issue May 18, 2021
orpiske added a commit to orpiske/camel-k that referenced this issue May 18, 2021
@astefanutti
Copy link
Member

It should be fixed with #2269.

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
Projects
None yet
Development

No branches or pull requests

2 participants