]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
fix drive-mirror completion with cloudinit
authorMira Limbeck <m.limbeck@proxmox.com>
Fri, 15 Jan 2021 11:49:24 +0000 (12:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Jan 2021 13:30:35 +0000 (14:30 +0100)
commit1b485263b3c2158b487c582b450ebcf721e6a79a
treea193e4a15059b451012005bd54c34220a8e2f28e
parent211785ee5092a593a4fac9dfcbe0e5285031be3e
fix drive-mirror completion with cloudinit

On clone_vm when cloning the disks while the VM is running, we use
drive-mirror. We skip completion until the last disk, but with a
cloudinit disk there's no drive-mirror and so no completion done. If it
is the last disk in the hash, we never complete the drive-mirror jobs
and no further cloning is possible as there are already active jobs
using the disks.

To fix it we have to call qemu_drive_mirror_monitor directly in the case
of cloudinit when completion is requested and there are jobs defined.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/QemuServer.pm