]> git.proxmox.com Git - pve-container.git/commitdiff
migrate: print mapped volume in error
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 17 Nov 2022 13:33:39 +0000 (14:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Nov 2022 14:00:48 +0000 (15:00 +0100)
since that is the ID on the target node..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/LXC/Migrate.pm

index 82305c001765a4588f96f59c3efde30f6ea74b1d..35455e16fcfd273fb59b8f08df5dd023c3a248ef 100644 (file)
@@ -476,6 +476,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 ?
        }