[pve-devel] [PATCH container] API HA tasks: we request states not execute them

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jun 21 07:20:12 CEST 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/API2/LXC.pm        | 2 +-
 src/PVE/API2/LXC/Status.pm | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 2e116d8..8c3645c 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -939,7 +939,7 @@ __PACKAGE__->register_method({
 
 		my $cmd = ['ha-manager', 'migrate', $service, $target];
 
-		print "Executing HA migrate for CT $vmid to node $target\n";
+		print "Requesting HA migration for CT $vmid to node $target\n";
 
 		PVE::Tools::run_command($cmd);
 
diff --git a/src/PVE/API2/LXC/Status.pm b/src/PVE/API2/LXC/Status.pm
index 13163a6..89a2fca 100644
--- a/src/PVE/API2/LXC/Status.pm
+++ b/src/PVE/API2/LXC/Status.pm
@@ -151,7 +151,7 @@ __PACKAGE__->register_method({
 
 		my $cmd = ['ha-manager', 'set', $service, '--state', 'started'];
 
-		print "Executing HA start for CT $vmid\n";
+		print "Requesting HA start for CT $vmid\n";
 
 		PVE::Tools::run_command($cmd);
 
@@ -244,7 +244,7 @@ __PACKAGE__->register_method({
 
 		my $cmd = ['ha-manager', 'set', $service, '--state', 'stopped'];
 
-		print "Executing HA stop for CT $vmid\n";
+		print "Requesting HA stop for CT $vmid\n";
 
 		PVE::Tools::run_command($cmd);
 
@@ -340,7 +340,7 @@ __PACKAGE__->register_method({
 
 		my $cmd = ['ha-manager', 'set', $service, '--state', 'stopped'];
 
-		print "Executing HA stop for CT $vmid\n";
+		print "Requesting HA stop for CT $vmid\n";
 
 		PVE::Tools::run_command($cmd);
 
-- 
2.11.0





More information about the pve-devel mailing list