Jira (PUP-11434) versioncmp - Error while evaluating a Function Call, wrong number of arguments (given 3, expected 2)

24 views
Skip to first unread message

Byron DeLaMatre (Jira)

unread,
Jan 25, 2022, 4:35:01 AM1/25/22
to puppe...@googlegroups.com
Byron DeLaMatre created an issue
 
Puppet / Bug PUP-11434
versioncmp - Error while evaluating a Function Call, wrong number of arguments (given 3, expected 2)
Issue Type: Bug Bug
Affects Versions: PUP 6.26.0
Assignee: Henrik Lindberg
Components: Functions
Created: 2022/01/25 1:34 AM
Environment:

Puppet 6 with Centos7 and all patches applied

Priority: Critical Critical
Reporter: Byron DeLaMatre

After upgrading puppet agent from 6.25.1 to 6.26.0, puppet is hard failing with errors such as:

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 (given 3, expected 2) (file: /etc/puppetlabs/code/environments/production/vendor-modules/puppet_agent/manifests/prepare/puppet_config.pp, line: 27, column: 9) on node web1.alpha.clusters.3pth.com

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 (given 3, expected 2) (file: /etc/puppetlabs/code/environments/production/vendor-modules/ssh/manifests/init.pp, line: 150, column: 10) on node web1.prontospot.clients.3pth.com

 

All signs are pointing to an error with the versioncmp() function, which was recently updated for version 6.26.0 (https://tickets.puppetlabs.com/browse/PUP-11235). It seems that an unintended change in how versioncmp() works is affecting multiple critical packages (e.g. puppet_agent, ssh). It seems that versioncmp is acting as if additional arguments are being supplied to it which causes a 500 and failure of puppet agent runs.

The issue can be resolved by downgrading puppet-agent to the previous version on puppet server.

`yum downgrade puppet-agent`

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Josh Cooper (Jira)

unread,
Jan 25, 2022, 6:19:01 PM1/25/22
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11434
 
Re: versioncmp - Error while evaluating a Function Call, wrong number of arguments (given 3, expected 2)

bdelamatre this is most likely caused by a mismatched versions of code between the running puppetserver instance and the puppet-agent package. Can you please restart the puppetserver service after upgrading the puppet-agent package (on the server)? See  also SERVER-1756

Yehuda Katz (Jira)

unread,
Jan 30, 2022, 1:01:01 PM1/30/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 1, 2022, 4:42:04 PM2/1/22
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11434

heston.hoffman parker.leach could we add something to the platform release notes to the effect that if the puppet-agent package is updated on the puppetserver host, then the puppetserver service needs to be restarted?

Josh Cooper (Jira)

unread,
Feb 1, 2022, 4:43:03 PM2/1/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 1, 2022, 4:43:03 PM2/1/22
to puppe...@googlegroups.com

Heston Hoffman (Jira)

unread,
Mar 3, 2022, 2:52:01 PM3/3/22
to puppe...@googlegroups.com

Parker Leach (Jira)

unread,
Mar 7, 2022, 11:46:02 AM3/7/22
to puppe...@googlegroups.com

Parker Leach (Jira)

unread,
Mar 29, 2022, 11:49:03 PM3/29/22
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages