When we delete a relay, all system groups and directive related to this relay are not deleted
When we delete a relay, a lot of groups and directive (system) remain. It should even be impossible to delete a relay that as node under it, and only be deletable when it is safe to be so, and in this case purge all system groups/directives/rules linked to it.
This may be done only via an external script (like when we transform a node to relay)
Updated by François ARMAND almost 4 years ago
- Project changed from Rudder to Scale-out relay
- Category deleted (
- Assignee set to Elaad FURREEDAN
- Target version deleted (
- Effort required set to Very Small
- Priority changed from 37 to 63
This could be a nice, simple feature to add in scale-out-relay.
1/ from the scale-out relay UI:
- list of relays
- delete that relay (the "delete" button should be disabled for relay in that case)
2/ add a "node" deletion hook with the plugin
Deletion already had hooks, but I'm not sure they are for code hook. If no, we need to had them in 6.0.
Then add one for deletion of related feature.
3/ Consider relay as a known case from rudder core and delete related things from rudder core.
This is the simplest and less modular solution: when a node is deleted, look if it is/was a policy server and delete related groups/rule/directives.
Effort very small at least to look and choose at the correct solution.