Commit Graph

33 Commits (24efb3736b2a6a7654aed122f3f7d72b28a94cb1)

Author SHA1 Message Date
Shyam Jeedigunta 02249de49b Allow disabling log dump for nodes (in preparation for using logexporter) 2017-04-25 10:48:33 +02:00
Justin Santa Barbara f506dfe1ea cluster/log-dump - chmod files before dumping
We make the files world-readable, so that installation techniques that
lock down the logfiles can still be dumped.

Issue https://github.com/kubernetes/test-infra/issues/2397
2017-04-03 21:41:24 -04:00
Random-Liu afd8b70afa Collect npd log in cluster e2e test. 2017-02-23 01:16:39 -08:00
Shyam Jeedigunta 3bc6bf6b70 Whitelist kubemark in node_ssh_supported_providers for log dump 2017-02-21 14:02:17 +01:00
Shyam Jeedigunta ed0ab3cd8e [Kubemark] Add option to log hollow-node logs 2017-02-20 11:52:49 +01:00
Shyam Jeedigunta 9bb636e9f8 Added etcd-events to cluster logging 2017-01-06 10:28:48 +01:00
Zach Loafman 8a81b6b057 cluster/log-dump.sh: Add a way to dump more journalctl services as well
(And tiny refactor of the two generic ones we already dump)
2016-12-28 00:35:33 -08:00
Mik Vyatskov e52c3e77e2 Avoid exporting fluentd-gcp own logs 2016-12-14 14:43:05 +01:00
Jeff Grafton a4c5055052 Fix conditional in log-dump.sh. 2016-12-01 14:08:40 -08:00
Kubernetes Submit Queue ec1371b2b1 Merge pull request #37671 from mtaufen/fix-log-collection-dead-kubelet-systemd
Automatic merge from submit-queue

Collect logs for dead kubelets too

Collect logs via journalctl if journalctl is installed, rather than only if
kubelet.service is running. The old way resulted in us losing logs any
time the kubelet was failing. This, of course, breaks on a node if
someone decided to install journalctl but not use it. But that is not
the case on any of the images used by cluster-level tests at present.

^^^^FYI @Random-Liu not sure if `which journalctl` implies that journalctl is actually used on all of the nodes we test in the node-e2e suites. This may be of consequence if we move to using `cluster/log-dump.sh` to scrape logs for node-e2e.

P0 because this is somewhat in the way of debugging https://github.com/kubernetes/kubernetes/issues/33882

@jessfraz @saad-ali This should be cherry-picked to 1.4 and 1.5 as well.
2016-11-30 13:03:09 -08:00
Michael Taufen 773dbde0cf Collect logs for dead kubelets too
Collect logs via journalctl if journalctl is installed, rather than only if
kubelet.service is running. The old way resulted in us losing logs any
time the kubelet was failing. This, of course, breaks on a node if
someone decided to install journalctl but not use it. But that is not
the case on any of the images used by cluster-level tests at present.
2016-11-30 07:17:17 -08:00
Zach Loafman a1bd743118 log-dump: Change USE_KUBECTL path to instead call out to a custom function
The LOG_DUMP_USE_KUBECTL path is fine, once the cluster is up.
However, we've had a continuous low-grade Up flake in the kops builds,
so I'd like to grab logs using the aws CLI.

This makes log-dump.sh extensible, so you can do:

function log_dump_custom_get_instances() { ... }
export -f log_dump_custom_get_instances
go run hack/e2e.go ...
2016-11-29 17:08:06 -08:00
Michael Taufen e0af63e55e Collect installation and configuration service logs for tests 2016-11-23 13:58:48 -08:00
Michael Taufen 9f547084c3 Include serial port output in GCP log-dump 2016-11-21 14:41:02 -08:00
Yu-Ju Hong fac2aeb416 Get kernel logs with timestamps
Without the timestamps, the log is not very useful.
2016-11-09 17:23:33 -08:00
Zihong Zheng 168f6f7ecd Expose addon manager's log by logging in file 2016-11-06 12:18:18 -08:00
Mik Vyatskov 62f0a171d1 Add rescheduler.log to the logs exported from master 2016-11-04 17:43:49 +01:00
Zach Loafman 98bcb69056 log-dump.sh: Fix kubemark log-dump.sh
Fixes #34446
2016-10-12 13:47:36 -07:00
Zach Loafman 4338351be2 log-dump.sh: Add a LOG_DUMP_USE_KUBECTL mode, refactor
This refactors log-dump.sh so that it can optionally just use "kubectl
get node" output, for dumping logs off a cluster that was brought up
using sometihng other than kube-up.sh (e.g. kops or kubeadm).

Note that for obvious reasons, if the cluster is fried, it'll probably
fail to hit the apiserver and all bets are off, but for the 95% case
where you're debugging tests, this is good. To cover the remaining 5%,
you could actually squirrel away the relevant external IPs after the
e2e.go:Up stage (because we better be able to hit the apiserver then)
and fetch them from cache later.
2016-10-10 13:41:49 -07:00
Wojciech Tyczynski 07476fa658 Copy rotated logs in e2e tests 2016-09-16 19:12:18 +02:00
Euan Kemp 6b226cbfd9 e2e/log-dump: Collect kernel log with journald
Related to #31928

The kern.log file does not exist on journald distros typically.
2016-09-08 16:04:02 -07:00
Wojciech Tyczynski 4fc48cfce3 Store startupscript from GKE clusters too 2016-09-01 13:48:50 +02:00
Aaron Crickenberger 4fd7578552 cluster/log-dump scp shouldn't check host keys
parity with cluster/aws/util.sh:ssh-to-node
2016-08-11 13:58:52 -07:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Piotr Szczesniak 66fce8fe44 Added logging to file for cluster autoscaler 2016-06-02 13:51:40 +02:00
Prashanth Balasubramanian 500bdca27c Collect l7 controller e2e logs 2016-05-31 14:44:30 -07:00
Matt Liggett 61ca21c4d7 Also collect docker supervisor logs.
This helps with understanding what the docker-checker.sh really did
during the test run.
2016-04-07 13:05:11 -07:00
Justin Santa Barbara bb68f740cd AWS kube-up: collect logs from e2e
By implementing detect-node-names and a few other helpers, we are able
to collect the logs from nodes.
2016-03-16 11:48:07 -04:00
spxtr 26f77d2ec5 Use SCP to dump logs and parallelize a bit. 2016-03-10 23:04:48 -08:00
k8s-merge-robot 36cb9d05ea Merge pull request #22728 from spxtr/tidy-shell
Auto commit by PR queue bot
2016-03-09 13:59:13 -08:00
Joe Finney 401985bf6c Move KUBERNETES_PROVIDER setting into cluster/kube-util.sh. 2016-03-08 16:51:20 -08:00
Joe Finney 4fdadbb132 Add a simple SSH test before attempting to gather logs in log-dump.sh. 2016-03-07 16:42:08 -08:00
Joe Finney eff5a9c14d Add cluster/log-dump.sh. 2016-03-01 17:13:18 -08:00