Solved

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

Posted on 2014-01-16
5
438 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
5 Comments
 
LVL 61

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 61

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now