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

Error on image build but error log is not complete #7

Open
gioppoluca opened this issue Dec 17, 2015 · 15 comments
Open

Error on image build but error log is not complete #7

gioppoluca opened this issue Dec 17, 2015 · 15 comments
Assignees
Labels
Milestone

Comments

@gioppoluca
Copy link
Member

I'm trying to build an image using a working set of files (it builds locally on my machine).

I try to go to the API and get the info of the build but the log is truncated and cannot understand what the error is.

@j-fuentes
Copy link
Contributor

Are you retrieving the error log with the API or inspecting the file?

@gioppoluca
Copy link
Member Author

I use the /builder/images/{tk}/detail
API
And in the log field the info is truncated

@gioppoluca
Copy link
Member Author

it just says build finished unsuccessfully in the description

@j-fuentes
Copy link
Contributor

Yes, that field is limited.

Because of that, I recommend for debug purposes to read from the log file.

But I am not sure if the file is overwritted with build finished unsuccessfully. Could you check it?

@gioppoluca
Copy link
Member Author

mmm I see that you rename the puppet manifest to a "manifest.pp" but in the dockerfile I generate I have the generated name (webdk.pp).
Did we decide to change the name of the manifest inside the dockerfile?
If yes what is the expected content? path included

@gioppoluca
Copy link
Member Author

can I advice you to leave the name of the puppet manifest as it is so the generated content will be good both when testing using crane and by hand (if you rename the dockerfile used by hand will not find the manifest.pp and I cannot have multiple manifest.pp in the same folder and I use a single folder for the generation)

@j-fuentes
Copy link
Contributor

We decided to use standard names.

The Dockerfile can read the manifest.pp file from images/<name of the image>/manifest.pp.

But yes, I can left the name as is.

@gioppoluca
Copy link
Member Author

also for me the webdk.pp manifest is in the root of the build context and not into a images/changed_generated_name folder
If you keef files as sent and use the -f flag for the build you can leave all in the context root and execute the builds without any problem keeping just the logs and all that things in the separated folders.
Leveraging on the -f flag could help

@gioppoluca
Copy link
Member Author

The fact is that I have no knowledge of the crane environment and with the generated files as they are I need to be able to test both using crane AND by-hand.

@gioppoluca
Copy link
Member Author

BTW we really need to be able to send the entire log back to the orchestrator or the service provider will not be albe to understand the error and he will not be able to access to the file system of the orchestrator

@j-fuentes
Copy link
Contributor

yes, but do you want the entire log error in a http response? It could be a big big response.

@j-fuentes
Copy link
Contributor

Should be fixed now (jmcerpa@25e8fe2).

@gioppoluca gioppoluca added this to the 1.1.1 milestone Feb 3, 2016
@gioppoluca
Copy link
Member Author

Verify and close

@jmcerpa
Copy link
Contributor

jmcerpa commented Feb 4, 2016

In the last dockService I add methods that allow managers to receive logs from crane. Manager can receive logs about image build and contexts, for example.
These methods are contextDetails, ImageDetails ...
Manager will receive a JSON, if you read the key "log" and "error_log" you can see what is happening in crane.
In this way, manager has more control over the process.
The old methods (getBuildInfo, getContexInfo...) receive a description, so you could not read the logs.

@jmcerpa
Copy link
Contributor

jmcerpa commented Feb 5, 2016

When the manager receives these logs stored in elasticsearch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants