[JIRA] (JENKINS-50297) WinSW logs not being cleaned up for cloud-provisioned (ephemeral) agents

1 view
Skip to first unread message

tyler@monkeypox.org (JIRA)

unread,
Mar 20, 2018, 1:17:02 PM3/20/18
to jenkinsc...@googlegroups.com
R. Tyler Croy created an issue
 
Jenkins / Bug JENKINS-50297
WinSW logs not being cleaned up for cloud-provisioned (ephemeral) agents
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: support-core-plugin
Created: 2018-03-20 17:16
Priority: Minor Minor
Reporter: R. Tyler Croy

Discussing this with Oleg Nenashev on IRC right now, on ci.jenkins.io we have:

% ls -lah /var/lib/jenkins/support/winsw/ | wc -l
22536
%

The instance is only provisioning Windows agents via the Azure VM Agents plugin, so it appears that none of the old logs are being cleaned up after the agents are deleted.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 20, 2018, 1:23:02 PM3/20/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-50297
 
Re: WinSW logs not being cleaned up for cloud-provisioned (ephemeral) agents

My first guess is that SmartLogFetcher is not that smart actually: https://github.com/jenkinsci/support-core-plugin/blob/48faf43ac7d7e55d1f9115df66bc216dbaa0c232/src/main/java/com/cloudbees/jenkins/support/impl/SlaveLogs.java#L104
18:05 <@rtyler> Tyler huh, interesting
18:06 I definitely haven't generated 22k support bundles
18:07 well, intentionally
18:08 <+oleg-nenashev> Oleg Nenashev "support/winsw/ " is a cache. So there will be one file for every log entry which *seems* to be a WinSW log
18:09 <+oleg-nenashev> Oleg Nenashev rtyler: So you will get an entry for any *.out or *.log entry in the root of any agent (Windows or Linux): https://github.com/jenkinsci/support-core-plugin/blob/2889a28ae41ab7379127c413ae112e9243c778ba/src/main/java/com/cloudbees/jenkins/support/impl/WinswLogfileFilter.java#L13-L20

Apparently it just fails to clean the cache properly for offline agents. Not 100% sure

dariver@gmail.com (JIRA)

unread,
Feb 20, 2019, 12:11:02 PM2/20/19
to jenkinsc...@googlegroups.com

PR  sent

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

dariver@gmail.com (JIRA)

unread,
Sep 4, 2019, 6:20:23 AM9/4/19
to jenkinsc...@googlegroups.com

dariver@gmail.com (JIRA)

unread,
Sep 4, 2019, 6:20:23 AM9/4/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages