PVE API on 5.2-10 can't get nodes/mynode/lxc/

jan_sumsky

New Member
Nov 19, 2018
1
0
1
30
I have a problem using the PVE APIv2 on 5.2-10. On the older version (5.2-9) everything works as usual. After upgrading cluster to 5.2-10 i cant use my custom monitoring tool that uses PVE API.

When i try to get info about lxc running in cluster:
Code:
curl -k -b "PVEAuthCookie=PVE:root@pam:5BF27AA0::Cdf5bUl7hKWfqpanvwSI6wKUtUHjxTyBw1rjqr419KmOg7Q8Kj6SER5ZuOiFJnYvzkI5e7R+h5Gi8Ip84YORnD058GxYzbxXZ3e4R4R/JAybemsugQsrvi/e0gvObCBpbny8P4957eg4gs2yZP8Fz7oQMxIIWYZ4d5KzqEpTqJb5YbOi57UPuQmlIB5+hGHdd4lpbfkLUhfvRNhiAO20kTz0eIyrF+CJ7zIuUVpx+dJgXjANq5lrBkNouxmfbjRIK/rRvNQcWIvxc4izYXYUCUsn/ZXFPhsMRO+FssyrXDV4fYq8EMHLtj13qj5dSFN23XKB/4MKoWCT+K1pj14lSA==" https://myenviroment:8006/api2/json/nodes/db-myenviroment-02/lxc/ | jq
It returns:
Code:
{
  "data": []
}

But when i try it locally via pvesh :
Code:
pvesh get /nodes/db-myenviroment-02/lxc --output-format json
it returns:
Code:
[
   {
      "cpu" : 0,
      "cpus" : 8,
      "disk" : "497287168",
      "diskread" : 3442176,
      "diskwrite" : 0,
      "lock" : "",
      "maxdisk" : "444950249472",
      "maxmem" : 1073741824,
      "maxswap" : 1073741824,
      "mem" : 83546112,
      "name" : "myenviroment_lxc",
      "netin" : 621361092,
      "netout" : 42320596,
      "pid" : "6157",
      "status" : "running",
      "swap" : 0,
      "template" : "",
      "type" : "lxc",
      "uptime" : 392837,
      "vmid" : "41015"
   }
]

Another problem i have is, that the "cpu" value is always "0", but the real usage is greader than "0".

Can anybody help me please?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!