[pve-devel] [PATCH qemu-server 11/16] Extract volume ID before calling 'parse_volume_id'
Fabian Ebner
f.ebner at proxmox.com
Wed Jan 29 14:30:09 CET 2020
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
PVE/QemuMigrate.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index d025b09..81b52d1 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -686,8 +686,10 @@ sub phase2 {
foreach my $drive (keys %{$self->{target_drive}}){
my $target = $self->{target_drive}->{$drive};
my $nbd_uri = $target->{nbd_uri};
- my $source_sid = PVE::Storage::Plugin::parse_volume_id($conf->{$drive});
- my $target_sid = PVE::Storage::Plugin::parse_volume_id($target->{drivestr});
+ my $target_drive = PVE::QemuServer::parse_drive($drive, $target->{drivestr});
+ my $source_drive = PVE::QemuServer::parse_drive($drive, $conf->{$drive});
+ my $source_sid = PVE::Storage::Plugin::parse_volume_id($source_drive->{file});
+ my $target_sid = PVE::Storage::Plugin::parse_volume_id($target_drive->{file});
my $bwlimit = PVE::Storage::get_bandwidth_limit('migrate', [$source_sid, $target_sid], $opt_bwlimit);
$self->log('info', "$drive: start migration to $nbd_uri");
--
2.20.1
More information about the pve-devel
mailing list