5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-13 13:17:55 +03:00

migration : display qm resume error in task log

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-02-24 08:44:06 +01:00 committed by Dietmar Maurer
parent f2965e67df
commit d5f315fda5

View File

@ -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;