mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 13:04:12 +00:00
migration blockers: allow mapped devices for *offline* migration
Do not mark mapped devices as local resources for the offline migration case, there it's only relevant that they have a mapping configured on the target node, which is a different check. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Tested-by: Christoph Heiss <c.heiss@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4a9d773711
commit
8c6b0569ea
@ -4665,7 +4665,7 @@ __PACKAGE__->register_method({
|
||||
type => 'string',
|
||||
description => "A local resource",
|
||||
},
|
||||
description => "List local resources e.g. pci, usb"
|
||||
description => "List local resources (e.g. pci, usb) that block migration."
|
||||
},
|
||||
'mapped-resources' => {
|
||||
type => 'array',
|
||||
|
@ -2517,6 +2517,10 @@ sub check_local_resources {
|
||||
if ($entry->{mapping}) {
|
||||
$add_missing_mapping->('pci', $k, $entry->{mapping});
|
||||
push @$mapped_res, $k;
|
||||
|
||||
# don't add mapped devices as blocker for offline migration but still iterate over
|
||||
# all mappings above to collect on which nodes they are available.
|
||||
next if !$state;
|
||||
}
|
||||
}
|
||||
# sockets are safe: they will recreated be on the target side post-migrate
|
||||
|
Loading…
Reference in New Issue
Block a user