Add node management API endpoints/commands #117
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a command to the
nodesection to trigger a manual fence. To implement, have this set the node todeadstate and let the rest of the system take over. Will probably need a way to work around the saving throws and just immediately trigger it.Some additional functionality might be useful, including:
Perhaps expand this to add a few more node management commands, for instance a
restartof the daemon or even arebootof the node.changed title from Add node {-fence API endpoint/CLI command-} to Add node {+management API endpoints/commands+}
changed the description
I think the useful commands would be:
pvc node reloadto trigger a hot reload of the PVC node daemon.pvc node rebootto trigger asudo rebootof the node, going through the flush procedure too.pvc node shutdownto trigger asudo poweroffof the node, going through the flush procedure too.pvc node fenceto trigger an immediate fence of the node by another node.After another solid year of use, I've found very few situations where these commands would be particularly useful, though they still might be nice to have.
Implementing them shouldn't be particularly difficult.
Adding ansible support in #160 would pretty much obsolete this, since management should be done at a cluster level.