Bug #11468

Fix daily cleanup of Puppet reports

Added by intrigeri 2016-05-23 20:54:57 . Updated 2016-05-25 09:06:15 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Infrastructure
Target version:
Start date:
2016-05-23
Due date:
% Done:

100%

Feature Branch:
Type of work:
Sysadmin
Blueprint:

Starter:
Affected tool:
Deliverable for:
270

Description

It seems that it doesn’t: we still get disk space issues on puppet-git.lizard. I wonder if the cronjob actually runs, or if we merely survive because we run the script by hand from time to time. FTR, after running it, I see 1.1 GB of reports left. So in the worst case we should in theory be storing ~2.2GB of reports just before the cleanup is done. This doesn’t really match what Icinga is telling us, so something must be wrong.


Subtasks


History

#1 Updated by intrigeri 2016-05-23 20:58:09

  • Subject changed from Check if daily cleanup of Puppet reports actually works to Fix daily cleanup of Puppet reports
  • Status changed from Confirmed to In Progress
  • % Done changed from 0 to 10

And indeed it simply doesn’t run: run-parts --list /etc/cron.daily doesn’t list the cleanup cronjob, presumably due to its file extension. So we could very well tweak the cleanup delay as much as we wanted, it would not have fixed the problem whatsoever.

#2 Updated by intrigeri 2016-05-23 21:26:55

  • % Done changed from 10 to 50

Presumably fixed, filed a ticket upstream (https://gitlab.com/shared-puppet-modules-group/puppet/issues/9) and sent a merge request there. I’ll see in a couple days how it goes.

#3 Updated by intrigeri 2016-05-25 09:06:15

  • Status changed from In Progress to Resolved
  • Assignee deleted (intrigeri)
  • % Done changed from 50 to 100
  • Deliverable for set to 270

I’ve seen the number of reports grow, and shrink again, so I think we’re good :)