5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-06 13:17:56 +03:00

API HA tasks: we request states not execute them

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2017-06-21 07:20:11 +02:00 committed by Dietmar Maurer
parent 5282865bf8
commit 0276584456

View File

@ -1756,7 +1756,7 @@ __PACKAGE__->register_method({
my $cmd = ['ha-manager', 'set', $service, '--state', 'started'];
print "Executing HA start for VM $vmid\n";
print "Requesting HA start for VM $vmid\n";
PVE::Tools::run_command($cmd);
@ -1853,7 +1853,7 @@ __PACKAGE__->register_method({
my $cmd = ['ha-manager', 'set', $service, '--state', 'stopped'];
print "Executing HA stop for VM $vmid\n";
print "Requesting HA stop for VM $vmid\n";
PVE::Tools::run_command($cmd);
@ -2023,7 +2023,7 @@ __PACKAGE__->register_method({
my $cmd = ['ha-manager', 'set', $service, '--state', 'stopped'];
print "Executing HA stop for VM $vmid\n";
print "Requesting HA stop for VM $vmid\n";
PVE::Tools::run_command($cmd);
@ -2846,7 +2846,7 @@ __PACKAGE__->register_method({
my $cmd = ['ha-manager', 'migrate', $service, $target];
print "Executing HA migrate for VM $vmid to node $target\n";
print "Requesting HA migration for VM $vmid to node $target\n";
PVE::Tools::run_command($cmd);