Issue #5520 has been updated by Nick Lewis.
Status changed from Accepted to Closed
The first issue is a confusion of buckets. There are two configuration options
for filebuckets: bucketdir and clientbucketdir. When bucketing on an agent,
files are stored in clientbucketdir (/var/lib/puppet/clientbucket). When
bucketing on a master, files are stored in bucketdir (/var/lib/puppet/bucket by
default).
When using filebucket, the bucketdir config option is used to determine which
filebucket to use. Thus, when restoring locally on an agent, the default
location is incorrect. The correct invocation is `puppet filebucket -l --bucket
/var/lib/puppet/clientbucket`.
The second issue, `Checksum {md5} does not match contents` is a bug, but was
fixed in 2.6.5.
----------------------------------------
Bug #5520: Filebucket is not restoring files
https://projects.puppetlabs.com/issues/5520
Author: Marcelo Bartsch
Status: Closed
Priority: High
Assignee:
Category: fileserving
Target version: 2.6.x
Affected Puppet version: 2.6.4
Keywords: filebucket
Branch:
Hi
i'm new to puppet , but it seems to be a bug to me.
scenario:
I had a module called dhcpd-ste, wich put a dhcpd.antennas.conf file into the
server, when this is changed a backup is done in the local system , but i
cannot restore the file:
<pre>
info: FileBucket adding /etc/dhcpd.antennas.conf as
{md5}3651c7b07ce0841905345de470ae399a
info:
/Stage[main]/Dhcpd-ste/Dhcpd-ste::Dhcpd-ste::Dhcpd-ste_files[/etc/dhcpd.antennas.conf]/File[/etc/dhcpd.antennas.conf]:
Filebucketed /etc/dhcpd.antennas.conf to main with sum
3651c7b07ce0841905345de470ae399a
</pre>
This is the error message:
<pre>
[root@pp-client ~]# puppet filebucket -l restore /tmp/la2
3651c7b07ce0841905345de470ae399a
Could not run: File not found
[root@pp-client ~]# find /var/lib/puppet -name 3651c7b07ce0841905345de470ae399a
-ls
2540997 4 drwxrwx--- 2 root root 4096 Dec 12 19:53
/var/lib/puppet/clientbucket/3/6/5/1/c/7/b/0/3651c7b07ce0841905345de470ae399a
</pre>
also tried with a remote filebucket, almos the same problem:
here the file is filebucketed on the server
<pre>
info:
/Stage[main]/Dhcpd-ste/Dhcpd-ste::Dhcpd-ste::Dhcpd-ste_files[/etc/dhcpd.antennas.conf]/File[/etc/dhcpd.antennas.conf]:
Filebucketed /etc/dhcpd.antennas.conf to main with sum
2228e977ebea8966e27929f43e39cb67
</pre>
this is the message on the server
<pre>
info: FileBucket adding etc/dhcpd.antennas.conf as
{md5}2228e977ebea8966e27929f43e39cb67
</pre>
the file IS on the server
<pre>
[root@puppet puppet]# find /var/lib/puppet -name
2228e977ebea8966e27929f43e39cb67 -ls
3913708 4 drwxrwx--- 2 puppet puppet 4096 Dec 12 20:02
/var/lib/puppet/bucket/2/2/2/8/e/9/7/7/2228e977ebea8966e27929f43e39cb67
</pre>
trying to restore it from the server with filebucket gave this:
<pre>
[root@pp-client ~]# puppet filebucket restore /tmp/dhcp.antena.conf
2228e977ebea8966e27929f43e39cb67
Could not run: Checksum {md5} does not match contents
2228e977ebea8966e27929f43e39cb67
</pre>
on the server it shows the following:
<pre>
info: FileBucket read {md5}2228e977ebea8966e27929f43e39cb67
</pre>
Please let me know if you need anything else.
--
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.