Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
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…

744 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

13 Experts available now in Live!

Get 1:1 Help Now