]> git.proxmox.com Git - pve-ha-manager.git/commit
delete node from HA stack when deleted from cluster
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 28 Sep 2015 09:34:52 +0000 (11:34 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 29 Sep 2015 05:34:33 +0000 (07:34 +0200)
commit7dd15f22ecbefc1602ac0676f741a295320bec33
tree0ddc13377487c103a12708b9e473f70467f67913
parentad1fbda129cff377bd953a5ba86a0ed1650de369
delete node from HA stack when deleted from cluster

When a node gets deleted from the cluster with pvecm delnode
we set it's node state in the manager status to 'gone'.
When set to gone the manager waits an hour after the node was last
seen online and only then deletes it from the manager status.

When some HA services were forgotten on the node (shouldn't happen
at all!!) the node will be fenced, the service migrated and then its
state reset to 'gone'. After an hour the node will be deleted,
unless it joined the cluster again in the meantime.

Deleting a node from the HA manager status is by no means a final
act, the ha-manager could live without deleting it, but for the user
it is confusing to see dead nodes in the interface.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/NodeStatus.pm