Issue #5443 has been updated by Garrett Honeycutt.

Having two buckets is really confusing and does not seem to have any intrinsic 
value.
----------------------------------------
Bug #5443: filebucket uses two paths for storing backups
https://projects.puppetlabs.com/issues/5443

Author: Garrett Honeycutt
Status: Needs more information
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.1
Keywords: filebucket
Branch: 


When you run 'puppet filebucket' on the command line it stores things in 
${vardir}/bucket instead of ${vardir}/clientbucket, which is where one would 
expect they be located.

Backup a file
<pre>
# puppet filebucket backup -l /tmp/fooclass 
/tmp/fooclass: 0bd838522b11c2aa9802625dc31730d7
</pre>

Let's look for it
<pre>
# find /var/lib/puppet/clientbucket -type f | grep 
0bd838522b11c2aa9802625dc31730d7
</pre>
Oh noes..

it was stored in this crazy place
<pre>
# find /var/lib/puppet/bucket/ -type f
/var/lib/puppet/bucket/0/b/d/8/3/8/5/2/0bd838522b11c2aa9802625dc31730d7/paths
/var/lib/puppet/bucket/0/b/d/8/3/8/5/2/0bd838522b11c2aa9802625dc31730d7/contents
</pre>

To reproduce, manage the contents of /tmp/fooclass and then change them, so 
puppet fixes the change and backups up the file.

When puppet agent is run the following happens.
<pre>
info: FileBucket adding /tmp/fooclass as {md5}c984bf8ef09013eb22b8d6dec9137703
info: /Stage[main]/Foo/File[/tmp/fooclass]: Filebucketed /tmp/fooclass to 
puppet with sum c984bf8ef09013eb22b8d6dec9137703
</pre>

and the file is stored under clientbucket, as one would expect.
<pre>
# find /var/lib/puppet/clientbucket/ -type f |grep 
c984bf8ef09013eb22b8d6dec9137703
/var/lib/puppet/clientbucket/c/9/8/4/b/f/8/e/c984bf8ef09013eb22b8d6dec9137703/paths
/var/lib/puppet/clientbucket/c/9/8/4/b/f/8/e/c984bf8ef09013eb22b8d6dec9137703/contents
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to