]> git.proxmox.com Git - pve-ha-manager.git/commit
add ignore state for resources
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Jan 2017 17:37:22 +0000 (18:37 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 13 Oct 2017 08:50:16 +0000 (10:50 +0200)
commit667670b2d4d5d8cd064d9443e924910f0836b15f
tree03af016e1d48882d4407919b0fc8424a0938a669
parent9adedcd738df0e861466b3879d6e86a1bc65ebb3
add ignore state for resources

In this state the resource will not get touched by us, all commands
(like start/stop/migrate) go directly to the VM/CT itself and not
through the HA stack.
The resource will not get recovered if its node fails.

Achieve that by simply removing the respective service from the
manager_status service status hash if it is in ignored state.

Add the state also to the test and simulator hardware.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 files changed:
src/PVE/HA/Config.pm
src/PVE/HA/Manager.pm
src/PVE/HA/Resources.pm
src/PVE/HA/Sim/Hardware.pm
src/PVE/HA/Sim/RTHardware.pm
src/test/test-service-ignore1/README [new file with mode: 0644]
src/test/test-service-ignore1/cmdlist [new file with mode: 0644]
src/test/test-service-ignore1/hardware_status [new file with mode: 0644]
src/test/test-service-ignore1/log.expect [new file with mode: 0644]
src/test/test-service-ignore1/manager_status [new file with mode: 0644]
src/test/test-service-ignore1/service_config [new file with mode: 0644]
src/test/test-service-ignore2/README [new file with mode: 0644]
src/test/test-service-ignore2/cmdlist [new file with mode: 0644]
src/test/test-service-ignore2/hardware_status [new file with mode: 0644]
src/test/test-service-ignore2/log.expect [new file with mode: 0644]
src/test/test-service-ignore2/manager_status [new file with mode: 0644]
src/test/test-service-ignore2/service_config [new file with mode: 0644]