Terraform Proxmox - Error: 400 Parameter verification failed.

shaykhdondada

New Member
May 8, 2020
2
0
1
27
Hello,

I'm making use of the proxmox terraform repo (https://github.com/Telmate/terraform-provider-proxmox/) which has been great to use but there is one bug/issue that I've come across.

Promox VE 6.1
Terraform 0.12.14

What I am trying to do:
I am trying to provision 3 compute 'proxmox_vm_qemu' resources from a cloud-init template to use for my kuberentes cluster setup.

The error:
When I run terraform plan I see all the things to be changed as expected with no errors. After when I run terraform apply I receive the following error :

Error: 400 Parameter verification failed.

on main.tf line 8, in resource "proxmox_vm_qemu" "kubernetes-master":
8: resource "proxmox_vm_qemu" "kubernetes-master" {


Error: 400 Parameter verification failed.

on main.tf line 49, in resource "proxmox_vm_qemu" "kubernetes-node-01":
49: resource "proxmox_vm_qemu" "kubernetes-node-01" {


Error: 400 Parameter verification failed.

on main.tf line 91, in resource "proxmox_vm_qemu" "kubernetes-node-02":
91: resource "proxmox_vm_qemu" "kubernetes-node-02" {



Workaround:
I found a workaround that get's it working but it's not ideal. I have to change the id of the drives being provisioned for each instance to 0 which the produces the following error for each resource:

Error: 500 disk 'virtio0' does not exist

on main.tf line 8, in resource "proxmox_vm_qemu" "kubernetes-master":
8: resource "proxmox_vm_qemu" "kubernetes-master" {

After getting this error I can then change the id drive to what it was before i.e. id 1, id2, id3 from the 1-3 resource and then it starts working.
 
Last edited:
  • Like
Reactions: shaykhdondada

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!