Skip to content

Commit

Permalink
Fix log issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLike committed May 7, 2019
1 parent b9ea8d5 commit b5e3428
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
- make e2e-test-kind
after_failure:
# Echo logs and upload
- test -f volcano-admission.log && echo "******<<admission logs>>******" && cat volcano-admission.log
- test -f volcano-controller.log && echo "******<<controller logs>>******" && cat volcano-controller.log
- test -f volcano-scheduler.log && echo "******<<scheduler logs>>******" && cat volcano-scheduler.log
- test -f volcano-admission.log && echo "************<<admission logs>>*****Max line limited*****" && cat volcano-admission.log
- test -f volcano-controller.log && echo "************<<controller logs>>*****Max line limited*****" && cat volcano-controller.log
- test -f volcano-scheduler.log && echo "************<<scheduler logs>>*****Max line limited*****" && cat volcano-scheduler.log
7 changes: 4 additions & 3 deletions hack/run-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export VK_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/..
export VK_BIN=${VK_ROOT}/${BIN_DIR}/${BIN_OSARCH}
export LOG_LEVEL=3
export MAX_LOGLINE=10000
export SHOW_VOLCANO_LOGS=${SHOW_VOLCANO_LOGS:-1}
export CLEANUP_CLUSTER=${CLEANUP_CLUSTER:-1}
export MPI_EXAMPLE_IMAGE=${MPI_EXAMPLE_IMAGE:-"volcanosh/example-mpi:0.0.1"}
Expand Down Expand Up @@ -76,9 +77,9 @@ function uninstall-volcano {

function generate-log {
echo "Generating volcano log files"
kubectl logs -lapp=volcano-admission -n kube-system > volcano-admission.log
kubectl logs -lapp=volcano-controller -n kube-system > volcano-controller.log
kubectl logs -lapp=volcano-scheduler -n kube-system > volcano-scheduler.log
kubectl logs -lapp=volcano-admission -n kube-system --tail=${MAX_LOGLINE} > volcano-admission.log
kubectl logs -lapp=volcano-controller -n kube-system --tail=${MAX_LOGLINE} > volcano-controller.log
kubectl logs -lapp=volcano-scheduler -n kube-system --tail=${MAX_LOGLINE} > volcano-scheduler.log
}

# clean up
Expand Down

0 comments on commit b5e3428

Please sign in to comment.