Page MenuHomePhabricator

Puppet4: Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/ordered_yaml: cannot load such file -- puppet/util/zaml.rb
Closed, ResolvedPublic

Description

Several nodes (using arcam and acrux as examples) are failing to compile with a puppet v4 master with error:

Failed to retrieve catalog from https://puppetmaster2001.codfw.wmnet:8140/future/catalog/acrab.codfw.wmnet: 500 {"message":"Server Error:
 Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/ordered_yaml: cannot load such file -- puppet/util/zaml.rb at /etc/puppet/modules/conftool/manifests/config.pp:28:20 on node acrab.codfw.wmnet","issue_kind":"RUNTIME_ERROR","stacktrace":["Warning: The 'stacktrace' property is deprecated and will be removed in a future version of Puppet. For security reasons, stacktraces are not returned with Puppet HTTP Error responses."]}
Catalog failed: Failed to retrieve catalog from https://puppetmaster2001.codfw.wmnet:8140/future/catalog/acrux.codfw.wmnet: 500 {"message":"Server Error:
 Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/ordered_yaml: cannot load such file -- puppet/util/zaml.rb at /etc/puppet/modules/conftool/manifests/config.pp:28:20 on node acrux.codfw.wmnet","issue_kind":"RUNTIME_ERROR","stacktrac
e":["Warning: The 'stacktrace' property is deprecated and will be removed in a future version of Puppet. For security reasons, stacktraces are not returned with Puppet HTTP Error responses."]}

In both cases the offending line is a call to ordered_yaml()

From the puppetmaster log:

Server Error: Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/ordered_yaml: cannot load such file -- puppet/util/zaml.rb at /etc/puppet/modules/conftool/manifests/config.pp:28:2
0 on node acrab.codfw.wmnet
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/etc/puppet/modules/wmflib/lib/puppet/parser/functions/ordered_yaml.rb:13:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/puppet/util/autoload.rb:68:in `load'
/usr/lib/ruby/vendor_ruby/puppet/util/autoload.rb:68:in `load_file'
/usr/lib/ruby/vendor_ruby/puppet/util/autoload.rb:194:in `load'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:203:in `function'
/usr/lib/ruby/vendor_ruby/puppet/pops/evaluator/runtime3_support.rb:288:in `call_function'
/usr/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:941:in `call_function_with_block'
/usr/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:910:in `eval_CallNamedFunctionExpression'
/usr/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/usr/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:855:in `eval_AttributeOperation'
/usr/lib/ruby/vendor_ruby/puppet/pops/visitor.rb:69:in `visit_this_1'
/usr/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:82:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/pops/evaluator/evaluator_impl.rb:822:in `block (2 levels) in eval_ResourceExpression'

Details

Event Timeline

herron renamed this task from Puppet: Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/ordered_yaml: cannot load such file -- puppet/util/zaml.rb to Puppet4: Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/ordered_yaml: cannot load such file -- puppet/util/zaml.rb.Oct 26 2017, 4:36 PM

Change 386783 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] ordered_yaml: use yaml instead of zaml

https://gerrit.wikimedia.org/r/386783

Change 386783 merged by Giuseppe Lavagetto:
[operations/puppet@production] ordered_yaml: use yaml instead of zaml

https://gerrit.wikimedia.org/r/386783

herron claimed this task.