Page MenuHomePhabricator

Function Call, wrong number of arguments (4 for 5) when a puppet master is connected to labs puppetmaster
Closed, ResolvedPublic

Description

Hi, i'm getting "Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, wrong number of arguments (4 for 5) at /etc/puppet/manifests/realm.pp:98:18 on node puppet-paladox.git.eqiad.wmflabs" intermittently. The puppet master is connected to labs puppetmaster.

Event Timeline

So I read that as something wrong in $dnsconfig = hiera_hash('labsdnsconfig', {})

Change 523752 had a related patch set uploaded (by Jbond; owner: John Bond):
[operations/puppet@production] hiera: use hiera v1 backend in labs

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

Change 523752 merged by Jbond:
[operations/puppet@production] hiera: use hiera v1 backend in labs

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

This was broken by https://gerrit.wikimedia.org/r/c/operations/puppet/+/522101 which added two new custom empty backends. the error message is coming from the fact that hiera v3 requires 5 parameters for its lookup function and hiera v1 4. I'm not sure what triggered but it is likely due in some way to the fact that the other wmcs backends use the V1 api.

jbond claimed this task.