]> git.proxmox.com Git - pve-ha-manager.git/commit - src/PVE/HA/Manager.pm
remove state transition from error to fence state
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Sep 2016 09:29:42 +0000 (11:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Sep 2016 05:49:10 +0000 (07:49 +0200)
commit9650c069615fd3742afc5cf0af91bf9d3d9c2ec4
tree72a702ba0a514e6173f5f99c2791b066a296d8ac
parent6e3d877df3f5265cf6d502fcd3e1099d43bd8dae
remove state transition from error to fence state

Remove the possible transition from error to fence state. The error
state is an end state and mustn't be left by some automatic action
but on manual intervention!

This also allows us later on to place a service which is not
recoverable from the fence in the error state without generating
and endless loop of state changes.

Add a regression test for a failed node with a service in error
state.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm
src/test/test-erroneous-service1/README [new file with mode: 0644]
src/test/test-erroneous-service1/cmdlist [new file with mode: 0644]
src/test/test-erroneous-service1/hardware_status [new file with mode: 0644]
src/test/test-erroneous-service1/log.expect [new file with mode: 0644]
src/test/test-erroneous-service1/manager_status [new file with mode: 0644]
src/test/test-erroneous-service1/service_config [new file with mode: 0644]