[pve-devel] [RFC ha-manager v2 0/3] add 'stopped' state for resources
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Nov 15 11:13:54 CET 2016
Some discussion with Dietmar resulted in this idea for solving bug #1160 -
allow HA templates. This solution is not template specific but a general
approach for resources.
You can request that a service gets in the stopped state, where he will be
still recovered on node failures.
It sill has the advantage from Dietmar approach that the LRM ensures that
the service is stopped and thus in a consistent state.
The plan is to rename the states in a later version (PVE 5.0) so that
enabled becomes started. The resulting states would then be:
* started
* stopped
* disabled
Which should help the confusion for user which are not familar with older HA
stacks (e.g. rgmanager).
Thomas Lamprecht (3):
Resources: add 'stopped' state
implement 'stopped' state
add regression test for 'stopped' state
src/PVE/HA/Manager.pm | 24 ++++++++++---
src/PVE/HA/Resources.pm | 8 +++--
src/PVE/HA/Sim/TestHardware.pm | 4 +--
src/test/test-basic1/log.expect | 1 -
.../test-relocate-policy-default-group/log.expect | 1 -
src/test/test-relocate-policy1/log.expect | 1 -
src/test/test-relocate-to-inactive-node/log.expect | 1 -
src/test/test-resource-failure1/log.expect | 1 -
src/test/test-resource-failure2/log.expect | 1 -
src/test/test-resource-failure5/log.expect | 1 -
src/test/test-resource-failure6/log.expect | 1 -
src/test/test-service-stopped1/README | 5 +++
src/test/test-service-stopped1/cmdlist | 3 ++
src/test/test-service-stopped1/hardware_status | 5 +++
src/test/test-service-stopped1/log.expect | 22 ++++++++++++
src/test/test-service-stopped1/manager_status | 1 +
src/test/test-service-stopped1/service_config | 3 ++
src/test/test-service-stopped2/README | 5 +++
src/test/test-service-stopped2/cmdlist | 5 +++
src/test/test-service-stopped2/hardware_status | 5 +++
src/test/test-service-stopped2/log.expect | 41 ++++++++++++++++++++++
src/test/test-service-stopped2/manager_status | 1 +
src/test/test-service-stopped2/service_config | 3 ++
src/test/test-service-stopped3/README | 6 ++++
src/test/test-service-stopped3/cmdlist | 4 +++
src/test/test-service-stopped3/hardware_status | 5 +++
src/test/test-service-stopped3/log.expect | 31 ++++++++++++++++
src/test/test-service-stopped3/manager_status | 1 +
src/test/test-service-stopped3/service_config | 3 ++
29 files changed, 176 insertions(+), 17 deletions(-)
create mode 100644 src/test/test-service-stopped1/README
create mode 100644 src/test/test-service-stopped1/cmdlist
create mode 100644 src/test/test-service-stopped1/hardware_status
create mode 100644 src/test/test-service-stopped1/log.expect
create mode 100644 src/test/test-service-stopped1/manager_status
create mode 100644 src/test/test-service-stopped1/service_config
create mode 100644 src/test/test-service-stopped2/README
create mode 100644 src/test/test-service-stopped2/cmdlist
create mode 100644 src/test/test-service-stopped2/hardware_status
create mode 100644 src/test/test-service-stopped2/log.expect
create mode 100644 src/test/test-service-stopped2/manager_status
create mode 100644 src/test/test-service-stopped2/service_config
create mode 100644 src/test/test-service-stopped3/README
create mode 100644 src/test/test-service-stopped3/cmdlist
create mode 100644 src/test/test-service-stopped3/hardware_status
create mode 100644 src/test/test-service-stopped3/log.expect
create mode 100644 src/test/test-service-stopped3/manager_status
create mode 100644 src/test/test-service-stopped3/service_config
--
2.1.4
More information about the pve-devel
mailing list