Ask Your Question
0

puppet agent --test

asked 2013-07-24 06:21:46 -0500

Deepak gravatar image

updated 2013-07-24 08:14:05 -0500

llowder gravatar image

Hi, Following error getting during the puppet agent --test on the client.

[root@TESTSERVER ~]# puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find testserver via exec: Execution of '/etc/puppetlabs/puppet-dashboard/external_node testserver' returned 35:
Info: Retrieving plugin
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppetdb_server_status.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version ...
(more)
edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

answered 2013-07-25 09:15:48 -0500

GregLarkin gravatar image

If you change the curl command to:

curl --sslv3 -k -H "Accept: text/yaml" "${ENC_BASE_URL}/${1}"

does it succeed then?

edit flag offensive delete link more

Comments

I have the same issue after a new PE 3.0 install and running the agent on the puppet master for the first time. Error: Could not retrieve catalog from ...(more)

derevan@cisco gravatar imagederevan@cisco ( 2013-07-25 15:38:42 -0500 )edit

Warning: Error 400 on SERVER: Failed to find puppetmaster3.tidalsoft.local via exec: Execution of '/etc/puppetlabs/puppet-dashboard/external_node puppetmaster3.tidalsoft.local' returned 56:. So now the error is 56 ...(more)

derevan@cisco gravatar imagederevan@cisco ( 2013-07-28 11:48:26 -0500 )edit

What happens if you open "https://puppet:443/nodes" in a browser? How about "https://<puppetmasterfqdn>:443/nodes"? Also please test again by replacing curl with wget. Does the output/error change?

GregLarkin gravatar imageGregLarkin ( 2013-07-28 21:00:43 -0500 )edit

There is no issue with FireFox for both puppet and fqdn, but only after I confirm the security exception for the unknown certificate. It shows me the console.

derevan@cisco gravatar imagederevan@cisco ( 2013-07-28 22:23:18 -0500 )edit

With wget, I get the following: ERROR: certificate common name “pe-internal-dashboard” doesn’t match requested host name “puppetmaster3.tidalsoft.local”. To connect to puppetmaster3.tidalsoft.local insecurely, use ‘--no-check-certificate’. When ...(more)

derevan@cisco gravatar imagederevan@cisco ( 2013-07-28 22:23:23 -0500 )edit
0

answered 2013-07-26 00:04:03 -0500

Deepak gravatar image

updated 2013-07-26 07:17:24 -0500

GregLarkin gravatar image
[root@TEST ~]# curl --sslv3 -v "https://puppet:443/nodes/testserver"
* About to connect() to puppet port 443 (#0)
*   Trying 10.44.46.218... connected
* Connected to puppet (10.44.46.218) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12263
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error
[root@TEST ~]#

[root@TEST ~]# curl -v "https://puppet:443/nodes/testserver"
* About to connect() to puppet port 443 (#0)
*   Trying 10.44.46.218... connected
* Connected to puppet (10.44.46.218) port 443 (#0 ...
(more)
edit flag offensive delete link more

Comments

Please the tests again and change the -v option in each command above to -vvv so curl outputs more debug information. Paste the output back here, and it should help ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-07-26 08:59:57 -0500 )edit

Had the same issue. My workaround was to edit the /etc/puppetlabs/puppet-dashboard/external_node script to use the puppet master's fqdn, rather than localhost,. So now external_node works fine ...(more)

derevan@cisco gravatar imagederevan@cisco ( 2013-07-28 11:47:48 -0500 )edit
0

answered 2013-08-02 11:08:08 -0500

bush gravatar image

Looks like puppetmaster try to run this command '/etc/puppetlabs/puppet-dashboard/external_node testserver' returned 35: and failed. Maybe you need to add manifest for the new node named testserver.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-07-24 06:21:46 -0500

Seen: 1,883 times

Last updated: Aug 02 '13