mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-09-12 13:44:21 +03:00
migration : display qm resume error in task log
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
f2965e67df
commit
d5f315fda5
@@ -532,7 +532,12 @@ sub phase3_cleanup {
|
|||||||
# now that config file is move, we can resume vm on target if livemigrate
|
# now that config file is move, we can resume vm on target if livemigrate
|
||||||
if ($self->{tunnel}) {
|
if ($self->{tunnel}) {
|
||||||
my $cmd = [@{$self->{rem_ssh}}, 'qm', 'resume', $vmid, '--skiplock'];
|
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 = $@) {
|
if (my $err = $@) {
|
||||||
$self->log('err', $err);
|
$self->log('err', $err);
|
||||||
$self->{errors} = 1;
|
$self->{errors} = 1;
|
||||||
|
Reference in New Issue
Block a user