]> git.proxmox.com Git - pve-ha-manager.git/commit
manage: handle edge case where a node gets stuck in 'fence' state
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 8 Oct 2021 12:52:26 +0000 (14:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Jan 2022 12:50:47 +0000 (13:50 +0100)
commit7dc927033fe553f7002870cc4c712ffbbd022322
treecbe5bef738eb8f36d9faf8e625ba5076ba0f333e
parent30fc7ceedb7f3047659f22d063cc16c94c20dd7a
manage: handle edge case where a node gets stuck in 'fence' state

If all services in 'fence' state are gone from a node (e.g. by
removing the services) before fence_node() was successful, a node
would get stuck in the 'fence' state. Avoid this by calling
fence_node() if the node is in 'fence' state, regardless of service
state.

Reported in the community forum:
https://forum.proxmox.com/threads/ha-migration-stuck-is-doing-nothing.94469/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
[ T: track test change of new test ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm
src/test/test-service-command8/log.expect
src/test/test-service-command9/log.expect