Add tiller log when process failed

This commit is contained in:
TommyLike 2019-07-08 09:52:07 +08:00
parent bc43754c6a
commit 1f3c707965
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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