[SOLVED] Api task return false status

pollux73

New Member
Nov 13, 2020
2
0
1
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..
 

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!