Solved

Puppet dashboard spool is filled up with many report-****.yaml files

Posted on 2014-01-16
5
506 Views
Last Modified: 2014-12-17
Hi All,

I have puppet instance . On server puppet dashboard server , millions of report-****-.yaml are present and they are not clearing up , but keep increasing every minutes.

As I understand, these files get cleared after processing automatically, but looks like there is some issue. Any help/suggestion to fix the issue, would be helpful.

Thanks
Sunil Sagar
0
Comment
Question by:sunilsagar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 39792227
It is the default behaviour of the default report plugin called "store"
0
 

Author Comment

by:sunilsagar
ID: 39792248
Thanks for the response gheist , is there any recommended way to clear / remove these files without breaking anything . These files are already eating 100 GB of disk-space .

Thanks
0
 
LVL 62

Expert Comment

by:gheist
ID: 39792366
Just delete them, you are expected to place your plugin in place of store plugin that does something meaningful with logs.... Otherwise they are left rotting for eternity.

Something like this:
find /var/spool/puppet -type f -mtime +7 -name report-\*.yaml -print0 | xargs rm -f
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39794502
You can use puppet tidy's resource to clean up.

http://docs.puppetlabs.com/references/latest/type.html#tidy

case $hostname {
    /^puppet$/: {
        tidy { 'puppet::reports':
             path => '/var/spool/puppet',
             matches => '*',
             age => '7d',
             backup => false,
             recurse => true,
             rmdirs => true,
             type => 'ctime',
         }
         # notify { "debug: tidy command should run now": }
    }
}

Open in new window

0
 
LVL 7

Expert Comment

by:Phil Davidson
ID: 40459009
When was the last time this Puppet Master server was rebooted?  I think you need to stop and restart services.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question