]> git.proxmox.com Git - pve-ha-manager.git/commit
manager: add new intermediate state for stop->start transitions
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 19 Nov 2022 14:27:59 +0000 (15:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Mar 2023 10:09:01 +0000 (11:09 +0100)
commit4931b58659f597c3d619d407bc6de513c645aca7
tree5edf1b5ad0342e1cdd88c5067d712a4c5e26081b
parent7fd7af67e56a803767b948a35992c3316be4fe8f
manager: add new intermediate state for stop->start transitions

We always check for re-starting a service if its in the started
state, but for those that go from a (request_)stop to the stopped
state it can be useful to explicitly have a separate transition.

The newly introduced `request_start` state can also be used for CRS
to opt-into starting a service up on a load-wise better suited node
in the future.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/LRM.pm
src/PVE/HA/Manager.pm
src/test/test-relocate-policy-default-group/log.expect
src/test/test-relocate-policy1/log.expect
src/test/test-resource-failure1/log.expect
src/test/test-resource-failure2/log.expect
src/test/test-resource-failure5/log.expect
src/test/test-resource-failure6/log.expect
src/test/test-service-command1/log.expect
src/test/test-service-command8/log.expect
src/test/test-shutdown-policy4/log.expect