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

[cli] fix issue around logs of che-server not written in host folder and update path of machines logs #3926

Merged
merged 2 commits into from
Jan 27, 2017

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Jan 27, 2017

What does this PR do?

Fix #3913 : che-server container should reuse property of CHE_LOGS_DIR if externally defined (else we couldn't configure the path externally)
Also machine logs should go in /logs/ folder as well (not in /data)

What issues does this PR fix or reference?

#3913

Changelog and Release Note Information

Changelog

Che logs should go in /logs folder. server log was not present.

Release Notes: N/A (bug)

Docs Pull Request

N/A as bugfix
https://www.eclipse.org/che/docs/setup/getting-started/index.html is not talking about logs

…nally defined

Change-Id: I73b8beed66b63f5368edb7b607fbdd96cbf69d93
Signed-off-by: Florent BENOIT <[email protected]>
@benoitf benoitf added kind/bug Outline of a bug - must adhere to the bug report template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Jan 27, 2017
@benoitf benoitf added this to the 5.2.0 milestone Jan 27, 2017
@benoitf benoitf self-assigned this Jan 27, 2017
@benoitf benoitf changed the title Che#3913 [cli] fix issue around logs of che-server not written in host folder and update path of machines logs Jan 27, 2017
@@ -23,7 +22,8 @@ JPDA_ADDRESS=<%= scope.lookupvar('che::che_debug_port') %>

CHE_DATABASE=/data
CHE_WORKSPACE_STORAGE=/data/workspaces
CHE_WORKSPACE_LOGS=/data/logs/machine
CHE_LOGS_DIR=/logs

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is hardcoded here then it is not possible to reassign it in user's che.env. Am I correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@garagatyi I've moved the definition few lines after its initial location so the LOGS_DIR are at the same place, I've not introduced a new hardcoded property.

AFAIK the definition of these values are "hardcoded" by CLI as it's inside the docker container. (for Che and Codenvy)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@garagatyi you may want to be able to override these values ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, just thinking about changed behavior here. But now I see that this line sets that one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@garagatyi yes correct, this is the fix. Before it was hardcoded in che-server docker image. Now it is set only if not provided. And cli is providing the property so it handle it correctly.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@codenvy-ci
Copy link

@slemeur
Copy link
Contributor

slemeur commented Jan 27, 2017

Added to RN.
Thanks

@benoitf benoitf merged commit 6d459be into master Jan 27, 2017
@benoitf benoitf deleted the che#3913 branch January 27, 2017 14:38
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jan 27, 2017
@JamesDrummond JamesDrummond mentioned this pull request Feb 6, 2017
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No che-server logs in logs folder
6 participants