Puppet run fails on system registered to Red Hat Satellite 6 with error: could not find class stdlib for client.example.com.

Solution Verified - Updated -

Environment

  • Red Hat Satellite/Capsule 6.x
  • Puppet

Issue

  • Puppet run on client system registered to satellite server fails with below error:

     # puppet agent -t
    Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find class stdlib for client.example.com on node client.example.com
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
    

Resolution

  • Check if stdlib module is present on Red Hat Satellite/Capsule CLI:

    # puppet module list
    
  • If stdlib module is not present, please install it:

     # yum install puppetlabs-stdlib
    
  • Import the Puppet environment from Red Hat Satellite WebUI:

    Login with admin privileges in satellite WebUI > Configure > Puppet > Classes > Click on Import Environment from capsule.example.com or satellite.example.com depending on the server which had missing module. 
    

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

  • The puppetlabs-stdlib package was missing from Red Hat Satellite/Capsule.

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.

Comments