Commit 4c7febd3 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #37338 from Random-Liu/fix-remote-log-fetching

Automatic merge from submit-queue Node E2E: Fix remote log fetching. For issue https://github.com/kubernetes/kubernetes/issues/37333. This will help debug https://github.com/kubernetes/kubernetes/issues/37333. Mark v1.5 because this helps debug an issue https://github.com/kubernetes/kubernetes/issues/37333, which was originally https://github.com/kubernetes/kubernetes/issues/35935. /cc @saad-ali @yujuhong @dchen1107 @jingxu97 /cc @kubernetes/sig-node
parents 8c212e7f e000ff08
...@@ -299,7 +299,7 @@ func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string ...@@ -299,7 +299,7 @@ func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string
// journald nodes. We should have a more robust way to collect logs. // journald nodes. We should have a more robust way to collect logs.
var ( var (
logName = "system.log" logName = "system.log"
logPath = filepath.Join(workspace, logName) logPath = fmt.Sprintf("/tmp/%s-%s", getTimestamp(), logName)
destPath = fmt.Sprintf("%s/%s-%s", *resultsDir, host, logName) destPath = fmt.Sprintf("%s/%s-%s", *resultsDir, host, logName)
) )
glog.Infof("Test failed unexpectedly. Attempting to retreiving system logs (only works for nodes with journald)") glog.Infof("Test failed unexpectedly. Attempting to retreiving system logs (only works for nodes with journald)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment