Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Include hostd logs on failure only #779

Merged
merged 1 commit into from
Nov 28, 2016

Conversation

kerneltime
Copy link
Contributor

@kerneltime kerneltime commented Nov 27, 2016

Due to large log files, the console output gets truncated. I am working with CI folks to bump up the limit but for successful runs, hostd log is a distraction. Thus, only dump hostd logs on failures.
Testing:
Faked a CI failure https://ci.vmware.run/vmware/docker-volume-vsphere/505

Fixes #769

@kerneltime
Copy link
Contributor Author

@kerneltime
Copy link
Contributor Author

Looks like the CI console log size will not change without a CI software upgrade. The sw upgrade to 0.5 is not planned yet as it is still not GAed.

@@ -36,5 +36,8 @@ truncate_vm_logs() {

truncate_esx_logs() {
$SSH $USER@$1 "echo > $ESX_LOGFILE"
$SSH $USER@$1 "echo > $HOSTD_LOGFILE"
if [ $INCLUDE_HOSTD == "true" ]
this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this line?

@kerneltime kerneltime force-pushed the runci/hostd-on-failure.kerneltime branch from 9f17f5b to cf79d5a Compare November 28, 2016 17:55
@kerneltime
Copy link
Contributor Author

Thanks, updated

@kerneltime kerneltime closed this Nov 28, 2016
@kerneltime kerneltime force-pushed the runci/hostd-on-failure.kerneltime branch from cf79d5a to 3759c61 Compare November 28, 2016 18:00
@kerneltime kerneltime reopened this Nov 28, 2016
@kerneltime kerneltime merged commit faf505d into master Nov 28, 2016
@kerneltime kerneltime deleted the runci/hostd-on-failure.kerneltime branch December 7, 2016 20:55
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants