Issue #14344 has been updated by James Patterson.

The problem seems to be that the file is not removed immediately (even though 
the log says it is).

Later on in the puppet run, a puppet config file is updated which causes puppet 
to restart.

Since the file is not removed before puppet shuts down, it has to be removed on 
the next run.

Seems like a race condition.
----------------------------------------
Bug #14344: File being removed- three times
https://projects.puppetlabs.com/issues/14344#change-62129

Author: James Patterson
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


I have a strange bug which I have reproduced three times on a test system: a 
file is not getting deleted when puppet says it is being deleted, and so puppet 
deletes it again two more times. After the third time it is gone:

    Stage['bootstrap'] -> Stage['main']
    node 'test' {
    class 'blah': stage => 'bootstrap', }
    }
    class blah {
    file {
    '/path/to/file.txt': ensure => absent;
    }
    }

RHEL6.2. SELinux enabled or permissive (doesn't make a difference).

puppet-2.7.13-1.el6 on server and client.

The problem with this bug is that it's not immediately obvious that something 
is broken: when puppet runs again it will eventually ensure the file is gone.


-- 
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