Page MenuHomePhabricator

Puppet4: update hiera function calls in kafka_config and kafka_cluster_name
Closed, ResolvedPublic

Description

analytics1003 fails to catalog compilation with a puppet 4 master. The error shown is:

Catalog failed: Failed to retrieve catalog from https://puppetmaster2001.codfw.wmnet:8140/future/catalog/analytics1003.eqiad.wmnet: 500 {"message":"Server Error: Evaluation Error: Error while evaluating a Function Call, hiera() can only be called using the 4.x function API. See Scope#call_function at /etc/puppet/modules/role/manifests/analytics_cluster/refinery/job/camus.pp:8:21 on node analytics1003.eqiad.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."]}

The offending line appears to be a call to kafka_config()

More info from the puppetmaster log:

Server Error: Evaluation Error: Error while evaluating a Function Call, hiera() can only be called using the 4.x function API. See Scope#call_function at /etc/puppet/modules/role/manifests/analytics_cluster/refinery/job/camus.pp:8
:21 on node analytics1003.eqiad.wmnet
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:275:in `is4x'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions/hiera.rb:87:in `block in <module:Functions>'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:174:in `block (2 levels) in newfunction'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:167:in `block in newfunction'
/usr/lib/ruby/vendor_ruby/puppet/parser/scope.rb:1002:in `method_missing'
/etc/puppet/modules/role/lib/puppet/parser/functions/kafka_config.rb:51:in `block in <module:Functions>'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:174:in `block (2 levels) in newfunction'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/around_profiler.rb:58:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:51:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:167:in `block in newfunction'
/etc/puppet/modules/role/manifests/analytics_cluster/refinery/job/camus.pp:8:in `stack'
/usr/lib/ruby/vendor_ruby/puppet/pops/puppet_stack.rb:30:in `eval'
/usr/lib/ruby/vendor_ruby/puppet/pops/puppet_stack.rb:30:in `stack'

Related Objects

Event Timeline

herron renamed this task from Puppet: Error while evaluating a Function Call, hiera() can only be called using the 4.x function API to Puppet4: Error while evaluating a Function Call, hiera() can only be called using the 4.x function API.Oct 26 2017, 4:36 PM
herron renamed this task from Puppet4: Error while evaluating a Function Call, hiera() can only be called using the 4.x function API to Puppet4: Error while evaluating a Function Call, hiera() can only be called using the 4.x function API. See Scope#call_function at /etc/puppet/modules/role/manifests/analytics_cluster/refinery/job/camus.pp:8:21.Oct 27 2017, 1:53 PM

Change 386866 had a related patch set uploaded (by Herron; owner: Herron):
[operations/puppet@production] puppet: update hiera function calls in kafka_config

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

Change 386866 merged by Herron:
[operations/puppet@production] puppet: update hiera function calls in kafka_config

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

Change 386871 had a related patch set uploaded (by Herron; owner: Herron):
[operations/puppet@production] puppet: update hiera function calls in kafka_cluster_name

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

Change 386871 merged by Herron:
[operations/puppet@production] puppet: update hiera function calls in kafka_cluster_name

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

herron claimed this task.
herron renamed this task from Puppet4: Error while evaluating a Function Call, hiera() can only be called using the 4.x function API. See Scope#call_function at /etc/puppet/modules/role/manifests/analytics_cluster/refinery/job/camus.pp:8:21 to Puppet4: update hiera function calls in kafka_config and kafka_cluster_name.Oct 27 2017, 3:36 PM