[pve-devel] [PATCH v3 qemu-server 3/3] print query-proxmox-support result in 'full' status

Stefan Reiter s.reiter at proxmox.com
Wed Nov 25 10:36:18 CET 2020


On 25/11/2020 10:09, Fabian Grünbichler wrote:
> this needs the following fix-up, else pvestatd spams the log for all not
> runnning VMs:
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 6966717..0103386 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -2750,6 +2750,8 @@ sub vmstatus {
> 
>       foreach my $vmid (keys %$list) {
>          next if $opt_vmid && ($vmid ne $opt_vmid);
> +       next if !$res->{$vmid}->{pid}; #not running
> +
>          # we can't use the $qmpclient since it might have already aborted on
>          # 'query-balloon', but this might also fail for older versions...
>          my $qemu_support = eval { mon_cmd($vmid, "query-proxmox-support") };
> 

Ack, that makes sense.





More information about the pve-devel mailing list