Issue #23375 has been reported by Christopher Wood.
----------------------------------------
Bug #23375: more verbosity in thing-not-found debug logs
https://projects.puppetlabs.com/issues/23375
* Author: Christopher Wood
* Status: Unreviewed
* Priority: Low
* Assignee:
* Category: error reporting
* Target version:
* Affected Puppet version: 3.3.2
* Keywords:
* Branch:
----------------------------------------
Doing something like this to reproduce a file system permissions issue I had:
chmod 000 /etc/puppet/environments/production/modules/puppet
And then doing:
puppet master --environment production --config /etc/puppet/puppetmaster.conf
--debug --verbose --no-daemonize
Leads to a message like this in the debug output when trying to do an agent run
:
Error: Could not find class puppet::agent for a1.cw on node a1.cw
Error: Could not find class puppet::agent for a1.cw on node a1.cw
Error: Could not find class puppet::agent for a1.cw on node a1.cw
But from the strace output, we see that actually it was looking for a specific
thing, and couldn't access that thing:
lstat("/etc/puppet/environments/production/modules/puppet/manifests/agent.pp",
0x7fff1616b580) = -1 EACCES (Permission denied)
Could we please have the reason ("File not found", "Permission denied", etc.)
and the path that the master was looking for also in the debug output following
the "Could not find class" line? For example:
Error: Class puppet::agent should be in
"/etc/puppet/environments/production/modules/puppet/manifests/agent.pp" but
stat said "Permission denied".
Assuming the same situation might be the case for templates and similar items,
could we please have similar detailed error logging for those too?
(I searched for my error and couldn't find similar bugs, my apologies if I
missed one.)
--
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.