Add node management API endpoints/commands #117
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
node
section to trigger a manual fence. To implement, have this set the node todead
state 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
restart
of the daemon or even areboot
of 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 reload
to trigger a hot reload of the PVC node daemon.pvc node reboot
to trigger asudo reboot
of the node, going through the flush procedure too.pvc node shutdown
to trigger asudo poweroff
of the node, going through the flush procedure too.pvc node fence
to 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.