Hi all,
I tried to bootstrap a node with a chef server on cent os 7
[devesh@localhost work] knife ssl check
Connecting to host localhost:443
Successfully verified certificates from `localhost'
[devesh@localhost work] sudo knife bootstrap 192.168.1.11 --ssh-user devesh --identity-file dc911.pem --node-name node1-desk --run-list ‘recipe[pkg_oprn_ubuntu]’
[sudo] password for devesh:
Node node1-desk exists, overwrite it? (Y/N) y
Client node1-desk exists, overwrite it? (Y/N) y
Creating new client for node1-desk
Creating new node for node1-desk
Connecting to 192.168.1.11
devesh@192.168.1.11’s password:
192.168.1.11 -----> Existing Chef installation detected
192.168.1.11 chmod: changing permissions of ‘/etc/chef/client.pem’: Operation not permitted
192.168.1.11 Starting the first Chef Client run…
192.168.1.11 Starting Chef Client, version 12.14.89
192.168.1.11 [2017-02-02T20:14:42+05:30] ERROR: SSL Validation failure connecting to host: localhost - SSL_connect returned=1 errno=0 state=error: certificate verify failed
192.168.1.11
192.168.1.11 ================================================================================
192.168.1.11 Chef encountered an error attempting to load the node data for "node1-desk"
192.168.1.11 ================================================================================
192.168.1.11
192.168.1.11 Unexpected Error:
192.168.1.11 -----------------
192.168.1.11 OpenSSL::SSL::SSLError: SSL Error connecting to https://localhost/organizations/lp7/nodes/node1-desk - SSL_connect returned=1 errno=0 state=error: certificate verify failed
192.168.1.11
192.168.1.11 Platform:
192.168.1.11 ---------
192.168.1.11 x86_64-linux
192.168.1.11
192.168.1.11
192.168.1.11 Running handlers:
192.168.1.11 [2017-02-02T20:14:42+05:30] ERROR: Running exception handlers
192.168.1.11 Running handlers complete
192.168.1.11 [2017-02-02T20:14:42+05:30] ERROR: Exception handlers complete
192.168.1.11 Chef Client failed. 0 resources updated in 02 seconds
192.168.1.11 [2017-02-02T20:14:42+05:30] FATAL: Stacktrace dumped to /home/devesh/.chef/cache/chef-stacktrace.out
192.168.1.11 [2017-02-02T20:14:42+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
192.168.1.11 [2017-02-02T20:14:42+05:30] ERROR: SSL Error connecting to https://localhost/organizations/lp7/nodes/node1-desk - SSL_connect returned=1 errno=0 state=error: certificate verify failed
192.168.1.11 [2017-02-02T20:14:42+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
My knife.rb configuration file is
current_dir = File.dirname(FILE)
log_level :info
log_location STDOUT
node_name "dc911"
client_key “/home/devesh/work/dc911.pem"
chef_server_url “https://localhost/organizations/lp7"
cookbook_path [”/home/devesh/work/cookbs”]
ssl_verify_mode :verify_none
Also I have set ssl_verify_mode :verify_none in client.rb of client node