I'm using Rudder 2.3 (v.2.3.7~rc2~git201205021042 ) since some months now and I have added some VM which have been deleted now.
So I search a step by step howto to remove its from my rudder node list. I suppose it's in LDAP entries but may be some files/directories also and Postgres ?
P.S. : I know it's a new/future feature in 2.4 but I'm not in 2.4 ...
Thanks for the procedure, may be this post will help people who want to delete node from rudder.
the third step you should search each object which has your node:
retrieve each dn results and create a file (to_remove) as following:
Next lunch:
Finally, remove all inventory informations:
P.S: Replace
${NODEID}
by your nodeId.The easiest way to remove a node is to upgrade to version 2.4
The hard way, on Rudder 2.3, requires to modify the content of the LDAP tree :
You have to connect to the LDAP directory, and perform the following steps :
In every entry in the tree groupCategoryId=GroupRoot,ou=Rudder, remove from the multivalued attributes nodeId the value d2049764-bdd8-4aed-b116-167546ffa157 (if it is there) (this will remove the node from all groups)
Finally, in the ou=Nodes,ou=Accepted Inventories,ou=Inventories find the entry with the RDN nodeId=d2049764-bdd8-4aed-b116-167546ffa157
Remove the entry DN: nodeId=d2049764-bdd8-4aed-b116-167546ffa157,ou=Nodes,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration and all its sub-entries (this will remove its inventory)
If you have only one node linked to this machine (which is most often the case), you can delete the entry machineId=55207ab4-a0bf-4772-8b72-cd10570a33fb,ou=Machines,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration and all its sub-entries, else just leave it alone
To regenerate all promises, and correct expected reporting, you have to go to the web interface, Administration pane, in the sub-menu Policy Server, and hit Clear Caches. Every expected reports will be computed again, to ensure proper compliance computing.