Issue #3569 has been updated by Ian Burrell.
Some more details.
The rule was:
file { "/usr/local/util":
ensure => link,
target => "/usr/local/linear",
force => true,
}
The affected machine had /usr/local/util as a directory containing a symlink
perl_lib to /usr/local/linear/perl_lib.
The puppet.log on affected machine contained:
Fri Apr 16 11:44:41 PDT 2010
/:main/linear/Main_system_link[linear]/File[/usr/local/util] (notice):
Recursively backing up to filebucket
Fri Apr 16 11:44:50 PDT 2010
/:main/linear/Main_system_link[linear]/File[/usr/local/util]/ensure (err):
change from directory to link failed: Not a directory -
/usr/local/util/perl_lib/RTK/Util
What seem to have happened is that the recursive remove_existing followed the
/usr/local/util/perl_lib symlink and deleted most of the files in
/usr/local/linear/perl_lib. I think it stopped when it hit a symlink out of
the tree.
----------------------------------------
Bug #3569: Recursively removing existing directories follows symlinks instead
of removing the symlink
http://projects.puppetlabs.com/issues/3569
Author: Ian Burrell
Status: Unreviewed
Priority: High
Assigned to:
Category:
Target version:
Affected version: 0.24.7
Keywords:
Branch:
I added force to a rule to create a symlink. One machine had a directory
instead which contained a symlink. The recursive backup followed the symlink
and deleted all of the files in the directory pointed to by the symlink. Which
caused the web site to go down as all the source was removed.
The expected behavior would be to delete the symlink the directory that was
being removed.
This happened with Puppet 0.24.7 but I checked the source and it looks like it
has the same bug.
--
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.