Issue #21087 has been updated by Paul Hinze. Status changed from Unreviewed to Accepted Affected Puppet version changed from 3.0.0 to 3.2.2
---------------------------------------- Bug #21087: No debug logging when Augeas incl/lens is used and lens is incorrect https://projects.puppetlabs.com/issues/21087#change-94691 * Author: Dominic Cleal * Status: Accepted * Priority: Normal * Assignee: * Category: augeas * Target version: * Affected Puppet version: 3.2.2 * Keywords: * Branch: ---------------------------------------- When using incl and lens parameters to the augeas type, the provider will load the file with the lens specified by the lens parameter. The lens parameter must match the internal Augeas lens name and not the filename of the module it's in. e.g. this is incorrect: lens => 'Php.aug', incl => '/etc/php5/fpm/php-fpm.conf', Instead it should be: lens => 'Php.lns', as lns is the lens name within the Php module. This causes confusing log output on Puppet 3, as the error isn't shown: Debug: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Augeas version 1.0.0 is installed Warning: Augeas[/etc/php5/fpm/php-fpm.conf custom_perf_settings](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output And no further relevant debug. It's printing out the "Loading failed" line because it found a node matching `/augeas//error` but it isn't in the format of error nodes under /augeas/files//error, as it's in fact under /augeas/load//error: augtool> print /augeas//error /augeas/load/Test/error = "Can not find lens Hosts.aug" The print_errors method in the provider only prints out the nodes beneath the error node, not the node itself, hence there's no debug output given. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
