Bug #14707
closedImpossible to recreate a node deleted
Description
If you delete a node :
server : Delete button on the Nodes manager view
client : apt-get purge --auto-remove rudder-agent & rm -fR .../rudder
and the recreate it : apt-get install rudder-agent
the 'new' node will never arrive in the view "Accept new nodes"
Explanation : the node is not really deleted, it is still present, with its previous public key, in the ldap db on "Removed Inventories" and no more on "Active Inventories". Why?
Quick solution : duplicate the script rudder-keys in rudder-keys2 and change line 38 :
#01 ACCEPTED_NODES_BASE="ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration"
ACCEPTED_NODES_BASE="ou=Nodes,ou=Removed Inventories,ou=Inventories,cn=rudder-configuration" #01
Proposed solutions :
1) buttun Delete > Destroy (no more data in the ldap db) buttons (scripts) : Delete , Undelete, Destroy
2)
- adapt script : rudder-keys
3) ...
and update the doc :
- How to delete a node?
- How to recreate/undelete" a node