将 chef-client 上的默认 validation_client_name 更改为 "orgname-validator"
Change default validation_client_name on chef-client to "orgname-validator"
我需要将我的 chef-server 上的默认属性 validation_client_name 更改为我的 orgname-validator,因为它在引导我的节点时出错:
Chef encountered an error attempting to create the client "mynode-1"
Authentication Error:
---------------------
Failed to authenticate to the chef server (http 401).
Server Response:
----------------
Invalid signature for user or client 'chef-validator'
Relevant Config Settings:
-------------------------
chef_server_url "https://chef.myorgname.com/organizations/orgname"
validation_client_name "chef-validator"
validation_key "/etc/chef/validation.pem"
If these settings are correct, your validation_key may be invalid.
[2015-04-02T15:30:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.426514217 seconds
[2015-04-02T15:30:44+00:00] ERROR: 401 "Unauthorized"
[2015-04-02T15:30:44+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
我该怎么做?
Chef-Server 12。
您可以随时通过 Chef 服务器 Web 界面重置您的密钥。弹出框将显示您的新密钥,您可以将其 cut/paste 放入 validation.pem 文件中。
此外,我相当确定您遗漏了一个 client_key,但可能不是。您是否尝试过从 Chef 服务器 Web 界面下载默认的入门工具包?它带有所有这些预先烘焙的东西。
我需要将我的 chef-server 上的默认属性 validation_client_name 更改为我的 orgname-validator,因为它在引导我的节点时出错:
Chef encountered an error attempting to create the client "mynode-1"
Authentication Error:
---------------------
Failed to authenticate to the chef server (http 401).
Server Response:
----------------
Invalid signature for user or client 'chef-validator'
Relevant Config Settings:
-------------------------
chef_server_url "https://chef.myorgname.com/organizations/orgname"
validation_client_name "chef-validator"
validation_key "/etc/chef/validation.pem"
If these settings are correct, your validation_key may be invalid.
[2015-04-02T15:30:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.426514217 seconds
[2015-04-02T15:30:44+00:00] ERROR: 401 "Unauthorized"
[2015-04-02T15:30:44+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
我该怎么做?
Chef-Server 12。
您可以随时通过 Chef 服务器 Web 界面重置您的密钥。弹出框将显示您的新密钥,您可以将其 cut/paste 放入 validation.pem 文件中。
此外,我相当确定您遗漏了一个 client_key,但可能不是。您是否尝试过从 Chef 服务器 Web 界面下载默认的入门工具包?它带有所有这些预先烘焙的东西。