[pve-devel] [PATCH container] migrate: implement insecure storage migration

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jun 6 10:03:58 CEST 2017


---
 src/PVE/LXC/Migrate.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Migrate.pm b/src/PVE/LXC/Migrate.pm
index 2f0244b..e78ea89 100644
--- a/src/PVE/LXC/Migrate.pm
+++ b/src/PVE/LXC/Migrate.pm
@@ -264,10 +264,11 @@ sub phase1 {
 	die "can't migrate CT - check log\n";
     }
 
+    my $insecure = $self->{opts}->{migration_type} eq 'insecure';
     foreach my $volid (keys %$volhash) {
 	my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
 	push @{$self->{volumes}}, $volid;
-	PVE::Storage::storage_migrate($self->{storecfg}, $volid, $self->{ssh_info}, $sid);
+	PVE::Storage::storage_migrate($self->{storecfg}, $volid, $self->{ssh_info}, $sid, undef, undef, undef, undef, $insecure);
     }
 
     my $conffile = PVE::LXC::Config->config_file($vmid);
-- 
2.11.0





More information about the pve-devel mailing list