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.


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to