mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-18 14:28:34 +00:00
vzdump: improve error logging for query-proxmox-support
Only show "not supported by QEMU version" message if we determine that to be the actual cause, just print the error otherwise. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
bd61033e30
commit
2cfb09053c
@ -490,9 +490,15 @@ sub archive_pbs {
|
|||||||
};
|
};
|
||||||
|
|
||||||
my $qemu_support = eval { mon_cmd($vmid, "query-proxmox-support") };
|
my $qemu_support = eval { mon_cmd($vmid, "query-proxmox-support") };
|
||||||
if (!$qemu_support) {
|
my $err = $@;
|
||||||
|
if (!$qemu_support || $err) {
|
||||||
|
die "query-proxmox-support returned empty value\n" if !$err;
|
||||||
|
if ($err =~ m/The command query-proxmox-support has not been found/) {
|
||||||
die "PBS backups are not supported by the running QEMU version. Please make "
|
die "PBS backups are not supported by the running QEMU version. Please make "
|
||||||
. "sure you've installed the latest version and the VM has been restarted.\n";
|
. "sure you've installed the latest version and the VM has been restarted.\n";
|
||||||
|
} else {
|
||||||
|
die "QMP command query-proxmox-support failed - $err\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $fs_frozen = $self->qga_fs_freeze($task, $vmid);
|
my $fs_frozen = $self->qga_fs_freeze($task, $vmid);
|
||||||
|
Loading…
Reference in New Issue
Block a user