]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #1769: restart mode for bulk lxc migration
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 18 Feb 2019 12:40:26 +0000 (13:40 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Tue, 19 Feb 2019 10:53:15 +0000 (11:53 +0100)
online mode doesn't work, and causes bulk migration of
running lxc containers to fail.

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
PVE/API2/Nodes.pm

index 3c450bb87f1b206f541d4eda53e42f1ddec67ea8..814dcea4127b42be4a422eaaa6b7602b7f9b655b 100644 (file)
@@ -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";