I am able to ssh and ping ChefNode2 I am stuck with bootstraping node using the below command:
Knife bootstrap chefnodeipaddress -x root -N ChefNode2
Error looks like this:
Failed to authenticate to the chef server (http 401). Server Response: Failed to authenticate as 'chef-validator'. Ensure that your node_name and client key are correct. Running handlers: [2018-02-15T10:20:25+00:00] ERROR: Running exception handlers Running handlers complete [2018-02-15T10:20:25+00:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 01 seconds [2018-02-15T10:20:25+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2018-02-15T10:20:25+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2018-02-15T10:20:25+00:00] ERROR: 401 "Unauthorized" [2018-02-15T10:20:25+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)