]> git.proxmox.com Git - pve-guest-common.git/commit
replication: prepare: include volumes without snapshots in the result
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 13 Dec 2023 14:17:45 +0000 (15:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2024 16:13:44 +0000 (18:13 +0200)
commita6f5b35851987254b1954aea5f9d28d10f7b8274
tree7c590b419b605bd54f5a6365c24b3111590d53a1
parentf28a4d1398de726775c75fe9b3172296c38058d0
replication: prepare: include volumes without snapshots in the result

Note that PVE::Storage::volume_snapshot_info() will fail when a volume
does not exist, so no non-existing volume will end up in the result
(prepare() is only called with volumes that should exist).

This makes it possible to detect a volume without snapshots in the
result of prepare(), and as a consequence, replication will now also
fail early in a situation where source and remote volume both exist,
but (at least) one of them doesn't have any snapshots.

Such a situation can happen, for example, by deleting and re-creating
a volume with the same name on the source side without running
replication after deletion.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/Replication.pm