[pve-devel] [PATCH qemu-server] migration: log error from query-migrate upon migration failure
Fiona Ebner
f.ebner at proxmox.com
Wed Jan 11 15:54:27 CET 2023
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 at proxmox.com>
---
PVE/QemuMigrate.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 5e466d95..cb0afaa7 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -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"
}
--
2.30.2
More information about the pve-devel
mailing list