Chef infra Chef引导新节点无法向Chef服务器进行身份验证(http 401)

Chef infra Chef引导新节点无法向Chef服务器进行身份验证(http 401),chef-infra,Chef Infra,我在CentOS 6上有一个厨师服务器。我已经启动了大约92个节点。今天,当我尝试引导一个新节点(CentOS 6)时,问题就开始了。 我运行的命令是: knife bootstrap node10 -N node10 -x user -P 'password' --sudo 输出如下: node10 warning: /tmp/install.sh.1137/chef-12.5.1-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID

我在CentOS 6上有一个厨师服务器。我已经启动了大约92个节点。今天,当我尝试引导一个新节点(CentOS 6)时,问题就开始了。 我运行的命令是:

knife bootstrap node10 -N node10 -x user -P 'password' --sudo
输出如下:

node10 warning: /tmp/install.sh.1137/chef-12.5.1-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 52ff435y: NOKEY

node10 Preparing...  ########################################### [100%]

node10    1:chef     ########################################### [100%]

node10 Thank you for installing Chef!

node10 Starting first Chef Client run...

node10 Starting Chef Client, version 12.5.1

node10 Creating a new client identity for node10 using the validator key.


node10 =========================================================

node10 Chef encountered an error attempting to create the client "node10"

node10 =========================================================

node10 Authentication Error:

node10 Failed to authenticate to the chef server (http 401).


node10 Server Response:


node10 Invalid signature for user or client 'org-validator'


node10 Relevant Config Settings:


node10 chef_server_url         "https://chef01.corp/organizations/devdept"

node10 validation_client_name  "org-validator"

node10 validation_key          "/etc/chef/validation.pem"


node10 If these settings are correct, your validation_key may be invalid.

node10 Running handlers:

node10 [2015-12-15T18:11:13+02:00] ERROR: Running exception handlers

node10 Running handlers complete

node10 [2015-12-15T18:11:13+02:00] ERROR: Exception handlers complete

node10 Chef Client failed. 0 resources updated in 13 minutes 48 seconds

node10 [2015-12-15T18:11:13+02:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out

node10 [2015-12-15T18:11:13+02:00] ERROR: 401 "Unauthorized"

node10 [2015-12-15T18:11:13+02:00] FATAL: Chef::Exceptions::ChildConvergeError: 
Chef run process exited unsuccessfully (exit code 1)
有什么办法? 正如我刚才所说,这台机器是全新的

谢谢,,
Gabriel

可能有人在您不知情的情况下在Chef服务器上重新生成了验证程序密钥。您需要一份新密钥的副本。或者,您可以通过从工作站和配置文件中删除无验证程序引导来切换到无验证程序引导。

“node10用户或客户端的“组织验证程序”签名无效”谢谢。通过从chef mngmt界面下载初学者工具包解决了这个问题,一切又开始工作了。记住,这样做会使其他人的验证器密钥副本无效。我知道这一点。我是唯一一个使用厨师服务器的人。感谢您花时间回复。