2014-11-24 18 views
11

Ho ricreato un nodo con lo stesso nome. Ho incontrato questo errore durante l'impostazione di un nodo e l'avvio automatico:Errore Chef durante il bootstrap. Errore di autorizzazione: (HTTP 403)

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. 

risposta

27

In questa situazione non ho eliminato il client. Il nodo è stato ricreato con lo stesso nome, quindi sia il nodo che il client devono essere eliminati. Ecco i comandi per farlo.

knife node delete <node-name> 
knife client delete <node-name> 

Nella situazione sopra di esso deve essere:

knife node delete node1 
knife client delete node1 
+0

Ho eseguito il comando, ma ho ottenuto un avvertimento dicendo "Nessun file di configurazione coltello trovato". Così ho cambiato directory in/etc/chef dove avevo knife.rb e ho risolto il problema per me. –

Problemi correlati