Skip to content

Commit

Permalink
Merge pull request #301 from TommyLike/bug/add_tiller_log
Browse files Browse the repository at this point in the history
Add tiller log when process failed
  • Loading branch information
volcano-sh-bot authored Jul 8, 2019
2 parents bc43754 + 1f3c707 commit 60ceaf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- make e2e-test-kind
after_failure:
# Echo logs and upload
- test -f helm-tiller.log && "******<<helm tiller service logs>>******" && cat helm-tiller.log
- 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
Expand Down
3 changes: 3 additions & 0 deletions hack/run-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ function uninstall-volcano {
}

function generate-log {
echo "Generating tiller log files"
kubectl logs deployment/tiller-deploy -n kube-system > helm-tiller.log
echo "Generating volcano log files"
kubectl logs deployment/${CLUSTER_NAME}-admission -n kube-system > volcano-admission.log
kubectl logs deployment/${CLUSTER_NAME}-controllers -n kube-system > volcano-controller.log
kubectl logs deployment/${CLUSTER_NAME}-kube-batch -n kube-system > volcano-kube-batch.log

}

# clean up
Expand Down

0 comments on commit 60ceaf6

Please sign in to comment.