mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-25 06:03:52 +03:00
migrate: improve cleanup_remotedisks
to also handle cases where disk allocation failed in the remote vm_start, and we only have a bitmap but no target drive information. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
0c4fef3f26
commit
6a039d06e9
@ -550,7 +550,10 @@ sub cleanup_remotedisks {
|
||||
my ($self) = @_;
|
||||
|
||||
foreach my $target_drive (keys %{$self->{target_drive}}) {
|
||||
my $drive = PVE::QemuServer::parse_drive($target_drive, $self->{target_drive}->{$target_drive}->{drivestr});
|
||||
my $drivestr = $self->{target_drive}->{$target_drive}->{drivestr};
|
||||
next if !defined($drivestr);
|
||||
|
||||
my $drive = PVE::QemuServer::parse_drive($target_drive, $drivestr);
|
||||
|
||||
# don't clean up replicated disks!
|
||||
next if defined($self->{replicated_volumes}->{$drive->{file}});
|
||||
|
Loading…
x
Reference in New Issue
Block a user