[pve-devel] [PATCH v2 manager 1/2] fix #1769: restart mode for bulk lxc migration

Oguz Bektas o.bektas at proxmox.com
Mon Feb 18 13:28:27 CET 2019


online mode doesn't work, and causes bulk migration of
running lxc containers to fail.

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 PVE/API2/Nodes.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 3c450bb8..814dcea4 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1779,7 +1779,7 @@ my $create_migrate_worker = sub {
 	my $online = PVE::LXC::check_running($vmid) ? 1 : 0;
 	print STDERR "Migrating CT $vmid\n";
 	$upid = PVE::API2::LXC->migrate_vm({node => $nodename, vmid => $vmid, target => $target,
-					    online => $online });
+					    restart => $online });
     } elsif ($type eq 'qemu') {
 	my $online = PVE::QemuServer::check_running($vmid, 1) ? 1 : 0;
 	print STDERR "Migrating VM $vmid\n";
-- 
2.11.0





More information about the pve-devel mailing list