Issue #14298 has been updated by Will Dowling.

Confirmed this - came across this myself with a fresh installation.

Platform: Ubuntu 12.04.2 LTS
Puppet Version: 3.2.3 (Open Source)

On a fresh master/agent install via puppetlabs APT, if any part of the path is 
a symlink agents will fail to pluginsync with the following message:

Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve 
information from environment production source(s) puppet://master/plugins

In this case, the path /etc/puppet/modules was a symlink to an empty folder 
elsewhere on the filesystem.
Replacing the symlink with an empty folder caused the behaviour to dissapear.

----------------------------------------
Bug #14298: pluginsync does not work if the module is a symlink
https://projects.puppetlabs.com/issues/14298#change-95300

* Author: Thomas Vander Stichele
* Status: Investigating
* Priority: Normal
* Assignee: Patrick Carlisle
* Category: plug-ins
* Target version: 
* Affected Puppet version: 2.6.16
* Keywords: 
* Branch: 
----------------------------------------
I had the firewall module as a symlink to a directory checkout in a user 
directory.

When trying to run puppet agent, I got:

[root@ana puppet]# puppet agent --server ana.amantes --test --pluginsync
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve 
information from environment production source(s) puppet://ana.amantes/plugins
info: Loading facts in iptables
info: Loading facts in iptables
err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource 
type firewall at /etc/puppet/manifests/site.pp:6 on node ana.amantes
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run


Removing the symlink and replacing it with a copy of the actual module 
directory for firewall, it did work.  So I conclude that symlinks aren't 
treated properly but ignored.


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


Reply via email to