]> git.proxmox.com Git - pve-ha-manager.git/commit
Add crm command 'stop'
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 10 Oct 2019 10:25:07 +0000 (12:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Nov 2019 14:55:48 +0000 (15:55 +0100)
commit21caf0db81c2a6ed5b999e269e00c20700e6a108
treeea6e56fc0b7a084eddc9e30fb895ea9df2ce4a87
parente4ef317d1f5622991252bd50e7bce48d756b0585
Add crm command 'stop'

Not every command parameter is 'target' anymore, so
it was necessary to modify the parsing of $sd->{cmd}.

Just changing the state to request_stop is not enough,
we need to actually update the service configuration as well.

Add a simple test for the stop command

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm
src/PVE/HA/Sim/Hardware.pm
src/test/test-stop-command1/README [new file with mode: 0644]
src/test/test-stop-command1/cmdlist [new file with mode: 0644]
src/test/test-stop-command1/hardware_status [new file with mode: 0644]
src/test/test-stop-command1/log.expect [new file with mode: 0644]
src/test/test-stop-command1/manager_status [new file with mode: 0644]
src/test/test-stop-command1/service_config [new file with mode: 0644]