]> git.proxmox.com Git - qemu-server.git/commit
migrate: use correct target storage id for checks
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 25 Jun 2021 12:32:05 +0000 (14:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Sep 2021 06:57:35 +0000 (08:57 +0200)
commitd213ba299d4a47b69b56eb2cc60e1a50d6b1df41
tree4b79c9bcee7a9f93b3019724c49f310751b494d1
parenta8d0fec3c2f853f71a2ac59eb6e75d2083ddf6d4
migrate: use correct target storage id for checks

The '--targetstorage' parameter does not apply to shared storages.

Example for a problem solved with the enabled check: Given a VM with
images only on a shared storage 'storeA', not available on the target
node (i.e. restricted by the nodes property). Then using
'--targetstorage storeB' would make offline migration suddenly
"work", but of course the disks would not be accessible and then
trying to migrate back would fail...

Example for a problem solved with the content type check: if a
VM had a shared ISO image, and there was a '--targetstorage storeA'
option, availablity of the 'iso' content type is checked for
'storeA', which is wrong as the ISO would not be moved to that
storage.

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