Issue #18026 has been updated by Chuck Schweizer.

This commit is causing the error
https://github.com/puppetlabs/puppet/commit/d47d09c6aa63e27ad25d342672d8d359739a39f6#lib/puppet/util/selinux.rb

Specifically

    rescue Errno::EACCES, Errno::ENOENT => detail
      warning "Could not stat; #{detail}"
    end 

Reverting to this code seems to fix the issue
    rescue Errno::ENOENT
      mode = 0
    rescue Errno::EACCES => detail
      warning "Could not stat; #{detail}"
    end
----------------------------------------
Bug #18026: SELinux warnings when using ensure => absent on file
https://projects.puppetlabs.com/issues/18026#change-80880

Author: Malcolm Howe
Status: Unreviewed
Priority: Normal
Assignee: 
Category: SELinux
Target version: 
Affected Puppet version: 3.0.2
Keywords: 
Branch: 


When using, for example,  

    file {"/etc/exclude.systemdump": ensure => absent  }

If the file is already absent Puppet 3.0.2rc1 gives the following warnings not 
seen in Puppet 3.0.1

    Warning: /File[/etc/exclude.systemdump]/seluser: Could not stat; No such 
file or directory - /etc/exclude.systemdump
    Warning: /File[/etc/exclude.systemdump]/selrole: Could not stat; No such 
file or directory - /etc/exclude.systemdump
    Warning: /File[/etc/exclude.systemdump]/seltype: Could not stat; No such 
file or directory - /etc/exclude.systemdump
    Warning: /File[/etc/exclude.systemdump]/selrange: Could not stat; No such 
file or directory - /etc/exclude.systemdump

System is running Centos 6 with SELinux in permissive mode.


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