[pve-devel] [PATCH v4 ha-manager 0/5] Implement a stop command for HA
Fabian Ebner
f.ebner at proxmox.com
Thu Oct 10 12:25:04 CEST 2019
This patch series introduces a new 'stop' command for ha-manager.
The command takes a timeout parameter and in case it is 0, it performs a hard stop.
The series also includes a test for the new command.
A few changes to how parameters were handled in CRM/LRM were necessary
as well as allowing the service config to be updated from within the manager.
Changes from v3:
* Squashed and reordered as Thomas suggested
Fabian Ebner (5):
Add update_service_config to the HA environment interface and
simulation
Add timeout parameter for shutdown
Add crm command 'stop'
Introduce crm-command to CLI and add stop as a subcommand
Add test for the stop command
src/PVE/CLI/ha_manager.pm | 46 +++++++++++++-
src/PVE/HA/Env.pm | 6 ++
src/PVE/HA/Env/PVE2.pm | 6 ++
src/PVE/HA/LRM.pm | 10 ++-
src/PVE/HA/Manager.pm | 27 ++++++--
src/PVE/HA/Resources.pm | 2 +-
src/PVE/HA/Resources/PVECT.pm | 14 +++--
src/PVE/HA/Resources/PVEVM.pm | 16 +++--
src/PVE/HA/Sim/Env.pm | 6 ++
src/PVE/HA/Sim/Hardware.pm | 22 +++++++
src/test/test-stop-command1/README | 2 +
src/test/test-stop-command1/cmdlist | 8 +++
src/test/test-stop-command1/hardware_status | 5 ++
src/test/test-stop-command1/log.expect | 69 +++++++++++++++++++++
src/test/test-stop-command1/manager_status | 1 +
src/test/test-stop-command1/service_config | 6 ++
16 files changed, 227 insertions(+), 19 deletions(-)
create mode 100644 src/test/test-stop-command1/README
create mode 100644 src/test/test-stop-command1/cmdlist
create mode 100644 src/test/test-stop-command1/hardware_status
create mode 100644 src/test/test-stop-command1/log.expect
create mode 100644 src/test/test-stop-command1/manager_status
create mode 100644 src/test/test-stop-command1/service_config
--
2.20.1
More information about the pve-devel
mailing list