Solved

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

Posted on 2014-01-16
5
465 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 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 162
Java core in Solaris 10 1 295
Linux performance issues with 100% swap usage, etc 15 93
Linux : can't create transaction lock error 1 74
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

789 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