[pve-devel] [PATCH qemu-server 1/3] move test for working ssh conection to AbstractMigrate

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Oct 27 17:00:15 CEST 2016


this needs to be done by both, container and qemu and I reuse it
in AbstractMigrate in a later patch.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/QemuMigrate.pm | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 22a49ef..b835a5e 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -203,11 +203,6 @@ sub prepare {
     # activate volumes
     PVE::Storage::activate_volumes($self->{storecfg}, $need_activate);
 
-    # test ssh connection
-    my $cmd = [ @{$self->{rem_ssh}}, '/bin/true' ];
-    eval { $self->cmd_quiet($cmd); };
-    die "Can't connect to destination address using public key\n" if $@;
-
     return $running;
 }
 
-- 
2.1.4





More information about the pve-devel mailing list