Puppet run fails on the Client with error Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown function: 'upcase'.
Environment
- Red Hat Satellite 6.3.5
- Red Hat Capsule 6.3.5.
- Puppet 3.8.
Issue
- Puppet run fails on the puppet clients with below error:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown function: 'upcase'. at /etc/puppetlabs/code/environments/KT_ORG_01_Test_RHEL_7_default_2/modules/sssd/manifests/config.pp:12:31 on node
Resolution
- Install puppetlabs-stdlib-4.2.1-1.20140510git08b00d9.el7sat.noarch on Red Hat Satellite Capsule server, this will install the latest stdlib.
OR
- Compare the content of stdlib (/usr/share/puppet/modules/stdlib) on Red Hat Satellite Capsule and Red Hat Satellite. upcase.rb should be present in stdlib :
# ls -lart /usr/share/puppet/modules/stdlib/lib/puppet/parser/functions/upcase.rb
-
If that is not present, Sync the stdlib directory from Red Hat Satellite to Capsule server.
-
Run below command on Red Hat Satellite CLI:
# scp -r /usr/share/puppet/modules/stdlib root@capsule:/usr/share/puppet/modules
For more KB articles/solutions related to Red Hat Satellite 6.x Puppet Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Puppet Issues
Root Cause
- Sync was not successful earlier.
SBR
Product(s)
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.