since that is the ID on the target node..

Signed-off-by: Fabian Grünbichler <f.gruenbich...@proxmox.com>
---
 src/PVE/LXC/Migrate.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm
index a0ab65e..ca1dd08 100644
--- a/src/PVE/LXC/Migrate.pm
+++ b/src/PVE/LXC/Migrate.pm
@@ -473,6 +473,9 @@ sub phase1_cleanup {
 
     if ($self->{volumes}) {
        foreach my $volid (@{$self->{volumes}}) {
+           if (my $mapped_volume = $self->{volume_map}->{$volid}) {
+               $volid = $mapped_volume;
+           }
            $self->log('err', "found stale volume copy '$volid' on node 
'$self->{node}'");
            # fixme: try to remove ?
        }
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to