Hello.
I am testing my script which uses Proxmox API (7.3-3) for creation/removing network interfaces (or other things in vm config).
While testing it was common situation to have 20+ network interfaces on vm.
So I wrote something like:
It asynchronously makes request for vm config change (POST) and get UPID for this task. Then it checks UPID status after some random time (~every 2 sec) and waiting for task completion.
This code quite often fails (but not always) with following response from Proxmox Api:
The question is: do I hit some kind of "task worker limit" or what can be reason for that?
I understand that this "config change" may be performed in one request like "-delete net1,net2,netN" but I want understand what is going on better.
I am testing my script which uses Proxmox API (7.3-3) for creation/removing network interfaces (or other things in vm config).
While testing it was common situation to have 20+ network interfaces on vm.
So I wrote something like:
JavaScript:
const hv = require('../hv')
//177 is vmid
for (let i = 1; i <= 28; i++) {
hv.deleteFromConfig(177, 'net' + i)
}
It asynchronously makes request for vm config change (POST) and get UPID for this task. Then it checks UPID status after some random time (~every 2 sec) and waiting for task completion.
This code quite often fails (but not always) with following response from Proxmox Api:
JSON:
{ data: null, errors: { upid: 'unable to parse worker upid' } }
The question is: do I hit some kind of "task worker limit" or what can be reason for that?
I understand that this "config change" may be performed in one request like "-delete net1,net2,netN" but I want understand what is going on better.