Unable to run puppet agent --test in client machine - Red Hat Satellite

Solution Verified - Updated -

Issue

  • Unable to run puppet agent --test in Client machine, ( i.e. Red Hat Capsule ) which is being installed with the custom SSL certificates.
  • Find the error message below
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 500 on SERVER: Server Error: Could not find a directory environment named 'KT_Test_21' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist?
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node client.example.com: Could not find a directory environment named 'KT_Test_21' anywhere in the path: /etc/puppetlabs/code/environments. Does the directory exist?
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Environment

  • Red Hat Satellite 6.3.5
  • Puppet server - 4.10.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content