]> git.proxmox.com Git - qemu-server.git/commit
fix #3861: migrate: fix live migration when cloud-init changes storage
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 28 Apr 2022 11:37:37 +0000 (13:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Apr 2022 16:29:12 +0000 (18:29 +0200)
commit13d121d79b2cf330ee539014b3f4e3aeb202f389
treee2ae341fb4ebe040a6e0c5fa4f7379931cf14a50
parent188eb9c37476ffe6dfcc58442e917f5aae463f31
fix #3861: migrate: fix live migration when cloud-init changes storage

Generalizes fd95d780 ("migrate: send updated TPM state volid to target
node") to also handle other offline migrated disks appearing in the
VM config, which currently should only be cloud-init.

Breaks migration new -> old under similar (edge-case-)conditions as
fd95d780 did.

Keep sending the 'tpmstate0' STDIN parameter to avoid breaking new ->
old in the scenario fd95d780 fixed.

Keep parsing the vm_start 'tpmstate0' STDIN parameter to avoid
breaking old -> new, and to be able to keep sending it.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuMigrate.pm
PVE/QemuServer.pm