[pve-devel] [RFC v2 pve-ha-manager 0/9] Do not freeze services on (gracefull) shutdown
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Dec 14 15:29:52 CET 2015
Changes since v1:
* shutdown HA services gracefully if we power off
* use a safer check for the online/quorate computation in the test framework
* slight refactorings
Thomas Lamprecht (9):
Hardware: remove unnecessary lock in get_node_info
Sim/Hardware: change online computation of node slightly
TestHardware: add helper commands functions
TestHardware: implement 'restart' & 'shutdown' action
TestHardware: add a more deterministic delay possibility
add shutdown_all_remaining_services function to LRM
HA Env: add 'is_poweroff' function
do not freeze services on a graceful poweroff
add tests for shutdown and restart behaviour
src/PVE/HA/Env.pm | 7 +++
src/PVE/HA/Env/PVE2.pm | 18 +++++++
src/PVE/HA/LRM.pm | 56 ++++++++++++++++++--
src/PVE/HA/Manager.pm | 3 +-
src/PVE/HA/Sim/Env.pm | 5 ++
src/PVE/HA/Sim/Hardware.pm | 17 +++---
src/PVE/HA/Sim/TestEnv.pm | 15 ++++++
src/PVE/HA/Sim/TestHardware.pm | 94 ++++++++++++++++++++++++++++++---
src/test/test-restart1/README | 2 +
src/test/test-restart1/cmdlist | 4 ++
src/test/test-restart1/hardware_status | 5 ++
src/test/test-restart1/log.expect | 48 +++++++++++++++++
src/test/test-restart1/manager_status | 1 +
src/test/test-restart1/service_config | 5 ++
src/test/test-shutdown1/README | 2 +
src/test/test-shutdown1/cmdlist | 5 ++
src/test/test-shutdown1/hardware_status | 5 ++
src/test/test-shutdown1/log.expect | 52 ++++++++++++++++++
src/test/test-shutdown1/manager_status | 1 +
src/test/test-shutdown1/service_config | 5 ++
src/test/test-shutdown2/README | 2 +
src/test/test-shutdown2/cmdlist | 5 ++
src/test/test-shutdown2/hardware_status | 5 ++
src/test/test-shutdown2/log.expect | 51 ++++++++++++++++++
src/test/test-shutdown2/manager_status | 1 +
src/test/test-shutdown2/service_config | 5 ++
26 files changed, 398 insertions(+), 21 deletions(-)
create mode 100644 src/test/test-restart1/README
create mode 100644 src/test/test-restart1/cmdlist
create mode 100644 src/test/test-restart1/hardware_status
create mode 100644 src/test/test-restart1/log.expect
create mode 100644 src/test/test-restart1/manager_status
create mode 100644 src/test/test-restart1/service_config
create mode 100644 src/test/test-shutdown1/README
create mode 100644 src/test/test-shutdown1/cmdlist
create mode 100644 src/test/test-shutdown1/hardware_status
create mode 100644 src/test/test-shutdown1/log.expect
create mode 100644 src/test/test-shutdown1/manager_status
create mode 100644 src/test/test-shutdown1/service_config
create mode 100644 src/test/test-shutdown2/README
create mode 100644 src/test/test-shutdown2/cmdlist
create mode 100644 src/test/test-shutdown2/hardware_status
create mode 100644 src/test/test-shutdown2/log.expect
create mode 100644 src/test/test-shutdown2/manager_status
create mode 100644 src/test/test-shutdown2/service_config
--
2.1.4
More information about the pve-devel
mailing list