Ask Your Question
1

Cleaning the clientbucket via tidy broken in Puppet 4?

asked 2016-01-19 10:29:30 -0500

br00tal gravatar image

I used to be able to clean the clientbucket (and the reports directory) in Puppet 3 using tidy, similar to the following:

tidy { 'Clean clientbucket':
  path    => $cbucketdir,
  age     => $cbuckettidy,
  recurse => true,
  rmdirs  => true,
  backup  => false,
  type    => 'ctime',
}

Since I've moved to Puppet 4, this no longer seems to work. I get errors such as:

# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for server01.example.com
Notice: /Stage[main]/Puppetconf/Tidy[Clean clientbucket]: Tidying 195 files
Error: Failed to apply catalog: Could not find dependency File[/opt/puppetlabs/puppet/cache/clientbucket/0/9/7] for File[/opt/puppetlabs/puppet/cache/clientbucket/0/9]
#

Not sure what's up here. I can get the run to work if I delete the contents of the clientbucket directory and re-run puppet agent -t. There seems to have been a behavior change between 3 and 4 where now the tidy stuff runs earlier in the process, which may be mucking up the run, but I'm not really sure.

In short, what's the best method in Puppet 4 for cleaning up the reports and clientbucket directories? Thanks for any assistance!

edit retag flag offensive close merge delete

Comments

Just a note, when I comment out my the tidy stuff, the agent run resumes as normal without any need to delete anything in the clientbucket.

br00tal gravatar imagebr00tal ( 2016-01-20 07:42:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-30 10:45:16 -0500

PaulT gravatar image

This is a regression in 4.3 and was fixed in 4.4, see https://tickets.puppetlabs.com/browse...

I've upgraded to puppet-agent_1.4.1 (from 1.3.5) and it fixes the problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-01-19 10:29:30 -0500

Seen: 467 times

Last updated: Jan 19 '16