]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
vm resource: add "with-local-disks" for replicated migrate
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 May 2020 08:15:59 +0000 (10:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 May 2020 08:16:03 +0000 (10:16 +0200)
We do not need passing a target storage as the identity mapping
prefers replicated storage for a replicated disks already, and other
cases do not make sense anyway as they wouldn't work for HA
recovery..

We probably want to check the "really only replicated OK migrations"
in the respective API code paths for the "ha" RPC environment case,
though.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Resources/PVEVM.pm

index 2e1698fce4c0005955f3bfcc517cf8048c1de068..58c83e03fea3a161a634538416390f502d761e84 100644 (file)
@@ -108,6 +108,7 @@ sub migrate {
        # different host have the same hardware, so this can be fine, and qemu
        # knows when not, so can only win here
        force => 1,
+       'with-local-disks' => 1,
        target => $target,
        online => $online,
     };