Issue #14343 has been updated by Andrew Parker.
Thanks for all of that info, Konrad. I've tried to reproduce the issue by installing REE (albeit the latest version: ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [i686-darwin11.3.0], MBARI 0x6770, Ruby Enterprise Edition 2012.02) and the gems that you listed. I tried various combinations of classes nested in other classes and inside defines, included in various places, used a template, and I still wasn't able to reproduce it. There is always the possibility that this is a problem in your particular version of REE, which is unfortunately an unsupported platform. I notice that the snippets that you gave are part of what appears to be a much larger structure. I suspect that the issue might be related to not only the use of the fact but also to the context in which this code is appearing. The intermediate scopes in which classes are declared and defines are used could be the issue. If you can come up with a simpler scenario that you could send to me in full, that would help a lot in tracking down this issue. ---------------------------------------- Bug #14343: undefined method twoscope_lookupvar while looking for top scope or facter variables https://projects.puppetlabs.com/issues/14343#change-62397 Author: konrad rzentarzewski Status: Investigating Priority: Normal Assignee: Andrew Parker Category: compiler Target version: Affected Puppet version: 2.7.14 Keywords: Branch: with upgrade to 2.7.14 comes the following error from puppetmasters: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Variable failed with error NoMethodError: undefined method `twoscope_lookupvar' for nil:NilClass at /etc/puppet/site/modules/[...]/init.pp:2863 on node [...] referenced module code is just a top scope or facter variable lookup, ie. exec { "load-cluster-conf": command => "cman_tool version -r $clusterversion" } it seems that twoscope_lookupvar is not visible in puppet classes. the following patch fixes this behaviour. -- 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.
