[SOLVED] Not able to retrieve disk' aio information via API

maco1717

Active Member
Apr 11, 2017
12
0
41
39
Hi,

When trying to get the aio (Asyn IO) information from disk on VMs I cannot reach this information via API. I have tried pvesh and API (using tokens).
1678183406700.png

My environment is the following version
Code:
[hypervisor]:root@node:~# pveversion -v
proxmox-ve: 7.2-1 (running kernel: 5.15.35-1-pve)
pve-manager: 7.2-4 (running version: 7.2-4/ca9d43cc)
pve-kernel-5.15: 7.2-3
pve-kernel-helper: 7.2-3
pve-kernel-5.4: 6.4-15
pve-kernel-5.15.35-1-pve: 5.15.35-3
pve-kernel-5.4.174-2-pve: 5.4.174-2
ceph-fuse: 15.2.17-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.2
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.1-8
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.2-1
libpve-guest-common-perl: 4.1-2
libpve-http-server-perl: 4.1-2
libpve-storage-perl: 7.2-4
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.12-1
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.2.1-1
proxmox-backup-file-restore: 2.2.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.5.1
pve-cluster: 7.2-1
pve-container: 4.2-1
pve-docs: 7.2-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.4-2
pve-ha-manager: 3.3-4
pve-i18n: 2.7-2
pve-qemu-kvm: 6.2.0-7
pve-xtermjs: 4.16.0-1
qemu-server: 7.2-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.7.1-1~bpo11+1
vncterm: 1.7-1

According to the API documentation I was hoping to be able to access the "Return object" for disk information in the format column
1678183733811.png

When using pvesh I get the following pvesh get /nodes/[NODE]/qemu/[VMID]/config
1678183524644.png

Using the API accessing Tokens to the same location I am getting
Code:
data:null

I cannot event get a list of VMs /api2/json/nodes/[NODE]/qemu (obviously queries via API, I do get a list of VMs via pvesh)
Code:
data:[]

I was hopping to get more information via API rather than less. I am wondering is the reason for this is because I am using Token based authentication.

Perhaps the version of PVE doesn't return this information.

Any advise would be appreciated.
 
Last edited:
if it's the default value, it won't show up in the config. Try setting it to e.g. "threads".

If you can't get a list of VMs, you're probably missing permissions
 
Oh wow. That was a quick reply. I changed the Token "permission" to NOT Privilege separation. That returned the list of VMs via API query.

When I changed the Async IO to non default it started showing via API query.

All good.
Thanks.
 
Last edited:
Great! Please mark the thread as solved (edit it, there's a dropdown near the title) so others with the same problem can find it more easily.
 
Oh wow. That was a quick reply. I changed the Token "permission" to NOT Privilege separation. That returned the list of VMs via API query.

When I changed the Async IO to non default it started showing via API query.

All good.
Thanks.
How did you change the Token permission? I've using pvesh to query the machines configs, but I feel like I'm fumbling around in the dark.
 

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!