]> git.proxmox.com Git - pve-container.git/commitdiff
migrate: implement insecure storage migration
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Jun 2017 08:03:58 +0000 (10:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 9 Jun 2017 10:27:19 +0000 (12:27 +0200)
src/PVE/LXC/Migrate.pm

index 2f0244b945fefe7f0f91cfe367b710a092d9e004..e78ea897c8e19731edc37670ae25d223404f9bd7 100644 (file)
@@ -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);