Search code examples
upgradepuppet

Puppet agent upgrade to 6.26 breaks function versioncmp()


recently I upgraded puppet agent from 6.25 to 6.26 on the puppetserver and it seems that after upgrade all agents conected to the puppetserver fail to apply changes due to an internal server error caused by versioncmp() built in function.

The quick fix to keep going is to downgrade puppet agent on the server to 6.25

Error:

Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, wrong number of arguments (given 3, expected 2)

Anyone managed to find where it breaks, and how versioncmp is changed in such manner that it sees 3 arguments?

Note: The function worked perfectly before and I did not changed anything in code.

Many thanks


Solution

  • Please see https://tickets.puppetlabs.com/browse/PA-4189 for details. You need to make sure that the puppetserver package is updated as well.