Issue #18541 has been reported by Andrew Parker.

----------------------------------------
Bug #18541: Unhelpful error message when a directory in `modulepath` is missing
https://projects.puppetlabs.com/issues/18541

Author: Andrew Parker
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 3.1.0-rc1
Keywords: errors
Branch: 


Currently (3.1.0-rc1) installing the OSX packages does not create 
`/etc/puppet/modules`, but the default for the `modulepath` setting includes 
that location. This causes a confusing error message when the agent runs:

<pre>
Puppets-Mac:puppet development$ sudo puppet agent --test
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve 
information from environment production source(s) puppet://localhost/plugins
Info: Caching catalog for localhost
Info: Applying configuration version '1357943257'
Notice: Finished catalog run in 0.03 seconds
</pre>

If that directory is created, then the error message is not produced.
<pre>
Puppets-Mac:puppet development$ sudo mkdir /etc/puppet/modules
Password:

Puppets-Mac:puppet development$ sudo puppet agent --test
Info: Retrieving plugin
Info: Caching catalog for localhost
Info: Applying configuration version '1357943257'
Notice: Finished catalog run in 0.03 seconds
</pre>

The error that appears in the master's logs is no more helpful.
<pre>
1/11/13 2:44:52.551 PM com.puppetlabs.puppetmaster:  [0;32mInfo: Could not find 
filesystem info for file 'plugins' in environment production [0m
1/11/13 2:44:52.701 PM com.puppetlabs.puppetmaster:  [0;32mInfo: Could not find 
file_metadata for 'plugins' [0m
</pre>

I would expect that in this case the agent issues no warning because there are 
simply no plugins to download and the master issues a warning that a directory 
in the `modulepath` does not exist.


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