Issue #17486 has been updated by Dominic Cleal.

Status changed from Needs More Information to Accepted
Priority changed from Normal to Low

Thanks, that helped.

The warning is happening because there is an error loading a file 
(/etc/xinetd.d/check_mk) that is handled by the same lens as the one you're 
using to modify your files.

The code works by:

1. Initialising all lenses and incl entries
1. Removing all lenses that don't have incl entries matching the context given 
(optimisation)
1. Loading all files based on the remaining lenses + incl entries
1. Warning for loading errors if the optimisation was possible

Since the code loads all xinetd files rather than just the one file that the 
context is targeted at, it sees a load error and shows this warning.  I think 
the only way to solve this would be to delete the incl entries as well, then 
add one based on the context set - a bit tricky.
----------------------------------------
Bug #17486: Puppet 3.0 Augeas Provider Warnings
https://projects.puppetlabs.com/issues/17486#change-76105

Author: Linux Bami
Status: Accepted
Priority: Low
Assignee: 
Category: augeas
Target version: 3.0.x
Affected Puppet version: 3.0.1
Keywords: augeas, provider
Branch: 


Greetings,

we are evaluating Puppet 3.0. At the moment we are getting errors from the 
augeas provider:
Warning: Augeas[xxxxxx](provider=augeas): Loading failed for one or more files, 
see debug for /augeas//error output

$ rpm -qa|grep puppet
puppet-server-3.0.1-1.el6.noarch
puppet-3.0.1-1.el6.noarch
puppetdb-terminus-1.0.2-1.el6.noarch
puppet-dashboard-1.2.12-1.el6.noarch
$ rpm -qa|grep augeas
augeas-libs-0.9.0-1.el6.x86_64
augeas-0.9.0-1.el6.x86_64
augeas-devel-0.9.0-1.el6.x86_64
ruby-augeas-0.4.1-1.el6.x86_64

The file manipulation of the files via augtool and the provider works fine but 
we always get the warning.

Same modules works fine with puppet 2.7 without any warnings



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