testing Proxmox 4 -- API errors

jnm

New Member
Mar 3, 2015
5
0
1
We're testing Proxmox 4.1 in consideration of upgrading our 3.x cluster. All the API operations I try (even the initial authentication) return a 500 status. Is there something we have to enable on the host?

Thanks!
 
It wasn't an in-place upgrade from 3.x, if that's what you mean. Clean install.
 
Code:
proxmox-ve: 4.1-33 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-5 (running version: 4.1-5/f910ef5c)
pve-kernel-4.2.6-1-pve: 4.2.6-33
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-30
qemu-server: 4.0-46
pve-firmware: 1.1-7
libpve-common-perl: 4.0-43
libpve-access-control: 4.0-11
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-21
pve-container: 1.0-37
pve-firewall: 2.0-15
pve-ha-manager: 1.0-18
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve3
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve7~jessie
openvswitch-switch: 2.3.2-2
 
We'd still like to determine if this is a Proxmox issue or a configuration issue. Use of the API is a pretty big consideration in our upgrade path. If anyone can offer some suggestions, we'd appreciate it.
 
For anyone playing along at home, I was using a node name that didn't exist, and carried over "openvz" from 3.x instead of "lxc" for 4.x. So it was a configuration error that was causing the failure.

That said, I'd expect a 404 if requesting a resource that doesn't exist at all -- not a 500 or 501. It took me longer than it should've to track down the issue that was staring me in the face, but I was helped in the wild goose chase by a misleading response from the API.

There are some other quirks about the new API that make it a little challenging to work with, but I'll leave those for another post.
 

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!