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

[Enhancement]Improve log message when image not available in cache #1301

Closed
apupier opened this issue Feb 26, 2020 · 1 comment
Closed

[Enhancement]Improve log message when image not available in cache #1301

apupier opened this issue Feb 26, 2020 · 1 comment

Comments

@apupier
Copy link
Contributor

apupier commented Feb 26, 2020

For Kit builder log, I have:

�[36mINFO�[0m[0030] Resolved base name fabric8/s2i-java:3.0-java8 to fabric8/s2i-java:3.0-java8 
�[36mINFO�[0m[0030] Resolved base name fabric8/s2i-java:3.0-java8 to fabric8/s2i-java:3.0-java8 
�[36mINFO�[0m[0030] Downloading base image fabric8/s2i-java:3.0-java8 
�[36mINFO�[0m[0031] Error while retrieving image from cache: getting file info: stat /kaniko/cache/sha256:9ac5acb3aa8e7e179eb1fd28cda7dac22ef7deac24f00b50cee56265fa259141: no such file or directory 
�[36mINFO�[0m[0031] Downloading base image fabric8/s2i-java:3.0-java8 
�[36mINFO�[0m[0032] Built cross stage deps: map[]                
�[36mINFO�[0m[0032] Downloading base image fabric8/s2i-java:3.0-java8 
�[36mINFO�[0m[0033] Error while retrieving image from cache: getting file info: stat /kaniko/cache/sha256:9ac5acb3aa8e7e179eb1fd28cda7dac22ef7deac24f00b50cee56265fa259141: no such file or directory 
�[36mINFO�[0m[0033] Downloading base image fabric8/s2i-java:3.0-java8 
�[36mINFO�[0m[0034] Executing 0 build triggers                   
�[36mINFO�[0m[0034] Skipping unpacking as no commands require it. 
�[36mINFO�[0m[0034] Taking snapshot of full filesystem...        
�[36mINFO�[0m[0034] Using files from context: [/builder/kit-bpb3eomt28oasvk8ae70/package/context] 
�[36mINFO�[0m[0034] ADD . /deployments                           
�[36mINFO�[0m[0034] Taking snapshot of files... 

when investigating, the message Error while retrieving image from cache: getting file info: stat /kaniko/cache/sha256:9ac5acb3aa8e7e179eb1fd28cda7dac22ef7deac24f00b50cee56265fa259141: no such file or directory leads to think that there is a a real error. Unless, I miss something, I think that it is only that the file is not available in the cache yet. I think it would be better to turn the message in this sense to avoid users to focus on this an "error" during investigations.

Also, I note that the message appears several times which seems a bit weird.

@astefanutti
Copy link
Member

In upcoming RC2, the builder defaults to using Buildah instead of Kaniko, so the messages won't appear. These statements are emitted by Kaniko, so there isn't much that can be done on Camel K side.

@apupier apupier closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants