]> git.proxmox.com Git - pve-manager.git/commit
pve6to7: more fine-grained detection of misconfigured guest volumes
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 30 Jun 2021 09:16:18 +0000 (11:16 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 30 Jun 2021 12:21:11 +0000 (14:21 +0200)
commit1126b8cd7d016fb564ab9b1fbe5cd3b7ceba69d4
tree07191224a194bfd82c30fc828795538cc216e97f
parentf68689bbf8391f8e99307b804e8c301bb92dbd12
pve6to7: more fine-grained detection of misconfigured guest volumes

If neither 'rootdir' nor 'images' are configured on a storage, but
there are guest images, just log the number of volumes found. If they
are relevant for migration, the check for unreferenced volumes will
catch them later.

Also detect content type mismatch for all volumes of existing guests,
which also covers the case of a VM image on a storage with only
'rootdir' and vice versa. To catch all such unreferenced volumes too,
it is necessary to scan all storages that do not have both content
types configured.

Change the message from 'will not work' to 'might not work'. If a
volume only referenced by a snapshot is misconfigured, it doesn't mean
that the guest doesn't work at all. Or it might be an ISO on a
misconfigured storage.

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