]> git.proxmox.com Git - pve-ha-manager.git/commit
recovery: allow disabling a in-recovery service
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 17:51:31 +0000 (19:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 18:08:12 +0000 (20:08 +0200)
commit719883e9a50a27b4e8fe68ffbd204c96a23d88ea
treef0513fcb64480d9f3b378bb3299613c1924d1991
parent6104d9e76ef7666f4629c4bd7be05e75a1628461
recovery: allow disabling a in-recovery service

Mostly for convenience for the admin, to avoid the need for removing
it completely, which is always frowned uppon by most users.

Follows the same logic and safety criteria as the transition to
`stopped` on getting into the `disabled` state in the
`next_state_error`.

As we previously had a rather immediate transition from recovery ->
error (not anymore) this is actually restoring a previous feature and
does not adds new implications or the like.

Still, add a test which also covers that the recovery state does not
allows things like stop or migrate to happen.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm
src/test/test-recovery4/README
src/test/test-recovery4/log.expect