5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-08 21:18:03 +03:00

Fix calls to get_replicateable_volumes

There is a need to set $noerr, because otherwise migration for a
VM with a non-replicatable volume fails with:
missing replicate feature on volume 'myfs:107/vm-107-disk-2.raw'

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2020-03-25 13:18:25 +01:00 committed by Fabian Grünbichler
parent a99b470e75
commit 47250f03ef
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ sub sync_disks {
});
}
my $replicatable_volumes = PVE::QemuConfig->get_replicatable_volumes($self->{storecfg}, $self->{vmid}, $conf);
my $replicatable_volumes = PVE::QemuConfig->get_replicatable_volumes($self->{storecfg}, $self->{vmid}, $conf, 0, 1);
my $test_volid = sub {
my ($volid, $attr) = @_;

View File

@ -4755,7 +4755,7 @@ sub vm_start {
$local_volumes->{$ds} = [$volid, $storeid, $volname];
});
my $replicatable_volumes = PVE::QemuConfig->get_replicatable_volumes($storecfg, $vmid, $conf);
my $replicatable_volumes = PVE::QemuConfig->get_replicatable_volumes($storecfg, $vmid, $conf, 0, 1);
my $format = undef;