[pve-devel] [PATCH] migration : display qm resume error in task log

Alexandre Derumier aderumier at odiso.com
Sun Feb 24 08:44:06 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuMigrate.pm |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 3d09653..61c5629 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -532,7 +532,12 @@ sub phase3_cleanup {
     # now that config file is move, we can resume vm on target if livemigrate
     if ($self->{tunnel}) {
 	my $cmd = [@{$self->{rem_ssh}}, 'qm', 'resume', $vmid, '--skiplock'];
-	eval{ PVE::Tools::run_command($cmd, outfunc => sub {}, errfunc => sub {}) };
+	eval{ PVE::Tools::run_command($cmd, outfunc => sub {}, 
+		errfunc => sub {
+		    my $line = shift;
+        	    $self->log('err', $line);
+		});
+	};
 	if (my $err = $@) {
 	    $self->log('err', $err);
 	    $self->{errors} = 1;
-- 
1.7.10.4




More information about the pve-devel mailing list