]> git.proxmox.com Git - qemu-server.git/commitdiff
migration: log error from query-migrate upon migration failure
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 11 Jan 2023 14:54:27 +0000 (15:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Jan 2023 10:12:14 +0000 (11:12 +0100)
if it is present. Should give more information for some failures and
even if it's not present, that fact helps to narrow things down.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuMigrate.pm

index 5e466d954cb21d3b3c30d41dfc6ed1b77b765b51..cb0afaa7c776d9d50c8496f244ad732cf7588c4f 100644 (file)
@@ -1271,7 +1271,8 @@ sub phase2 {
        }
 
        if ($status eq 'failed' || $status eq 'cancelled') {
-           $self->log('info', "migration status error: $status");
+           my $message = $stat->{'error-desc'} ? "$status - $stat->{'error-desc'}" : $status;
+           $self->log('info', "migration status error: $message");
            die "aborting\n"
        }