Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add multiple nodes to chef #256

Open
ramanjk opened this issue Oct 30, 2018 · 0 comments
Open

How to add multiple nodes to chef #256

ramanjk opened this issue Oct 30, 2018 · 0 comments

Comments

@ramanjk
Copy link

ramanjk commented Oct 30, 2018

Hello all,
I am new to chef..i have learned basics of chef and i have configured basic set up with 3 nodes.

  1. chef server
  2. chef workstation
  3. chef client node1
    i have added chef client node1 by using knife bootstrap command..and everything worked fine...

Now i decided to add one more node to chef by using the sameway that knife bootstrap...but this time i got an below error.

     can anybody help me that how to add nodes..

[root@chef recipes]# knife bootstrap x.x.x.x -x root -P xxxxxx
Doing old-style registration with the validation key at /root/chef-repo/.chef/ram-validator.pem...
Delete your validation key in order to use your user credentials instead

Connecting to 10.0.0.23
10.0.0.23 -----> Existing Chef installation detected
10.0.0.23 Starting the first Chef Client run...
10.0.0.23 Starting Chef Client, version 14.6.47
10.0.0.23
10.0.0.23 ================================================================================
10.0.0.23 Chef encountered an error attempting to load the node data for "chef.node2.com"
10.0.0.23 ================================================================================
10.0.0.23
10.0.0.23 Authentication Error:
10.0.0.23 ---------------------
10.0.0.23 Failed to authenticate to the chef server (http 401).
10.0.0.23
10.0.0.23 Server Response:
10.0.0.23 ----------------
10.0.0.23 Failed to authenticate as 'chef.node2.com'. Ensure that your node_name and client key are correct.
10.0.0.23
10.0.0.23 Relevant Config Settings:
10.0.0.23 -------------------------
10.0.0.23 chef_server_url "https://chef.server.com/organizations/ram"
10.0.0.23 node_name "chef.node2.com"
10.0.0.23 client_key "/etc/chef/client.pem"
10.0.0.23
10.0.0.23 If these settings are correct, your client_key may be invalid, or
10.0.0.23 you may have a chef user with the same client name as this node.
10.0.0.23
10.0.0.23 System Info:
10.0.0.23 ------------
10.0.0.23 chef_version=14.6.47
10.0.0.23 ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
10.0.0.23 program_name=/usr/bin/chef-client
10.0.0.23 executable=/opt/chef/bin/chef-client
10.0.0.23
10.0.0.23
10.0.0.23 Running handlers:
10.0.0.23 [2018-10-30T15:54:06+05:30] ERROR: Running exception handlers
10.0.0.23 Running handlers complete
10.0.0.23 [2018-10-30T15:54:06+05:30] ERROR: Exception handlers complete
10.0.0.23 Chef Client failed. 0 resources updated in 02 seconds
10.0.0.23 [2018-10-30T15:54:06+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
10.0.0.23 [2018-10-30T15:54:06+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
10.0.0.23 [2018-10-30T15:54:06+05:30] FATAL: Net::HTTPServerException: 401 "Unauthorized"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant