]> git.proxmox.com Git - qemu-server.git/commit
fix #4372: fix vm_resume migration callback
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 29 Nov 2022 12:09:26 +0000 (13:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Nov 2022 15:21:39 +0000 (16:21 +0100)
commitad9e347c463d47a2a6edb81f129f6ba1707c3e26
tree672bdbc0986803103e4564dbba745f78eb3a69db
parenta116a7e08e71340af2610c408d3af41ad0da40f2
fix #4372: fix vm_resume migration callback

the fix for the recently introduced requirement of loading the VM config while
migrating was incomplete, since the vmlist node value could already be out of
date by the time load_config is called.

extend the fallback behaviour even further, by doing the following sequence:
- try regular load_config (likely case, rename already fully processed)
- if it fails, get node from vmlist, and load_config using that
- it that fails, invalidate the PVE::Cluster cache, retry regular load_config

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/QemuServer.pm