[SOLVED] Api task return false status

pollux73

Member
Nov 13, 2020
2
0
21
44
Hi,

I just update one of my proxmox VE server:
Code:
$ pveversion
pve-manager/6.2-15/48bd51b6 (running kernel: 5.4.65-1-pve)

And I tried to "terraform" a VM on it. I found something very weird with the api result.

step to reproduce:
* have a stopped VM
* $ pvesh create /nodes/<yournode>/qemu/<vmid>/status/start => it returns a task id
* $ pvesh get /nodes/<yournode>/tasks/<mytask_id>/status
the status always return "status: stopped", My VM is started, I can connect to it, but it breaks terraform (and other custom script I have). Is it a bug ?
 
Hi,

I just update one of my proxmox VE server:
Code:
$ pveversion
pve-manager/6.2-15/48bd51b6 (running kernel: 5.4.65-1-pve)

And I tried to "terraform" a VM on it. I found something very weird with the api result.

step to reproduce:
* have a stopped VM
* $ pvesh create /nodes/<yournode>/qemu/<vmid>/status/start => it returns a task id
* $ pvesh get /nodes/<yournode>/tasks/<mytask_id>/status
the status always return "status: stopped", My VM is started, I can connect to it, but it breaks terraform (and other custom script I have). Is it a bug ?

the 'stopped' is referring to the task, not the VM..