Hi all, We have two environments: production (containing one module) and experimental (two modules, one the same name as the module in production). All of our other modules are in the main module directory. Agent runs complete fine in the production environment, but not when switched to experimental. Error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function sprintf at /usr/local/etc/puppet/modules/config/manifests/init.pp:54 on node hostname.network I figured that perhaps the modulepath wasn''t right, but it turns out sprintf is a core function: http://docs.puppetlabs.com/references/latest/function.html#sprintf Nothing in any of our modules implements or overrides sprintf, and sprintf is used in modules in the main module directory (i.e. by runs in both environments). May I have some help troubleshooting this problem? Thanks, Greg. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
On 14/08/13 13:29, Gregory Orange wrote:> We have two environments: production (containing one module) and > experimental (two modules, one the same name as the module in > production). All of our other modules are in the main module directory. > Agent runs complete fine in the production environment, but not when > switched to experimental. Error: > > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Unknown function sprintf at > /usr/local/etc/puppet/modules/config/manifests/init.pp:54 on node > hostname.networkI guess from the silence here and on IRC that I''m on my own. It might be time for me to refactor to abandon environments all together, since they only play a relatively small part in our setup, useful though it is. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
On Tuesday, August 27, 2013 8:31:07 PM UTC-5, gregory...@calorieking.com wrote:> > On 14/08/13 13:29, Gregory Orange wrote: > > We have two environments: production (containing one module) and > > experimental (two modules, one the same name as the module in > > production). All of our other modules are in the main module directory. > > Agent runs complete fine in the production environment, but not when > > switched to experimental. Error: > > > > Error: Could not retrieve catalog from remote server: Error 400 on > > SERVER: Unknown function sprintf at > > /usr/local/etc/puppet/modules/config/manifests/init.pp:54 on node > > hostname.network > I guess from the silence here and on IRC that I''m on my own. It might be > time for me to refactor to abandon environments all together, since they > only play a relatively small part in our setup, useful though it is. >I don''t have any specific knowledge about your problem, so I did not respond before. It may be that you have higher expectations of environments than they can in fact satisfy. In particular, although you can specify per-environment module paths, Puppet does not completely isolate the modules of one environment from those of others. It can support only one version of each native component (custom type / provider / function), and of ancillary code such components provide. When modules in different environments provide conflicting versions of native components then at least one of the environments involved will break. My best guess is that that''s what is happening to you. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.