引导时的厨师错误.授权错误:(HTTP 403)

Shi*_*pai 13 chef-infra

我重新创建了一个具有相同名称的节点.我遇到这个错误设置节点并引导它:

 Starting Chef Client, version 11.16.4
 [2014-11-24T18:51:13+00:00] INFO: *** Chef 11.16.4 ***
 [2014-11-24T18:51:13+00:00] INFO: Chef-client pid: 4540
 Creating a new client identity for node1 using the validator key.
 [2014-11-24T18:51:15+00:00] INFO: Client key /etc/chef/client.pem is not present - registering
 [2014-11-24T18:51:16+00:00] INFO: HTTP Request Returned 409 Conflict: Client already exists
 [2014-11-24T18:51:16+00:00] INFO: HTTP Request Returned 403 Forbidden: error

 ================================================================================
 Chef encountered an error attempting to create the client "node1"
 ================================================================================


 Authorization Error:
 --------------------
 Your validation client is not authorized to create the client for this node (HTTP 403).



 Possible Causes:
 ----------------
 * There may already be a client named "node1"

 * Your validation client (chef-validator) may have misconfigured authorization permissions.
Run Code Online (Sandbox Code Playgroud)

Shi*_*pai 35

在这种情况下,我没有删除客户端.使用相同的名称重新创建节点,因此需要删除节点和客户端.以下是执行此操作的命令.

knife node delete <node-name>
knife client delete <node-name>
Run Code Online (Sandbox Code Playgroud)

在上述情况下,它必须是:

knife node delete node1
knife client delete node1
Run Code Online (Sandbox Code Playgroud)