Cannot query HA resource details with pvesh

karateka

New Member
Nov 3, 2015
3
0
1
Proxmox version: 5.2-8/fdf39912

I'm trying to find out, which node a vm is currently routed to, so I thought this command might be useful:

pvesh get /cluster/ha/resources/vm:101

However, it only sends back the following error message:
Use of uninitialized value in string eq at /usr/share/perl5/PVE/CLIFormatter.pm line 390.
Use of uninitialized value $type in string eq at /usr/share/perl5/PVE/CLIFormatter.pm line 403.
Use of uninitialized value $type in string eq at /usr/share/perl5/PVE/CLIFormatter.pm line 414.
HASH(0x55ae953ed8b0)


The VM is listed as a resource when I run
pvesh get /cluster/ha/resources/

I double checked and I have the required permissions:
Check: ["perm","/",["Sys.Audit"]]

I can see the desired details through the web interface.

I assume the error is a bug in the API. Meanwhile, is there any other way to find out programatically which node a VM should be routed to according to Proxmox?
 

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!