Error applying configuration
ZombaL85 opened this issue · comments
Hi, I'm trying to use your code to create a cluster on proxmox but I'm getting errors with vda disks.
And actually the disks are not created, any help ?
pve-manager/8.1.5
│
│ with talos_machine_configuration_apply.control-planes["0"],
│ on talos-boot.tf line 29, in resource "talos_machine_configuration_apply" "control-planes":
│ 29: resource "talos_machine_configuration_apply" "control-planes" {
│
│ rpc error: code = InvalidArgument desc = configuration validation failed: 1 error occurred:
│ * specified install disk does not exist: "/dev/vda"
│
│
╵
╷
│ Error: Error applying configuration
│
│ with talos_machine_configuration_apply.worker-nodes["2"],
│ on talos-boot.tf line 58, in resource "talos_machine_configuration_apply" "worker-nodes":
│ 58: resource "talos_machine_configuration_apply" "worker-nodes" {
│
│ rpc error: code = InvalidArgument desc = configuration validation failed: 1 error occurred:
│ * specified install disk does not exist: "/dev/vda"
Can you post your tfvars
file?
Yes sure:
proxmox_api_url = "https://192.168.1.100:8006/api2/json"
proxmox_api_token_id = "apiuser"
proxmox_api_token_secret = "apitoken"
cluster_vip = "192.168.1.101"
proxmox_servers = {
pve1 = {
control_planes_count = 1
disk_storage_pool = "local-lvm"
network_bridge = "vmbr0"
node_labels = {
role = "control-plane"
}
}
}
talos_worker_nodes = [
{
target_server = "pve1"
node_labels = {
role = "worker"
}
count = 1
}
]
It appears, as far as I can tell, your vars are correct. Are there no other errors/warnings in the terraform output?
│ Warning: Argument is deprecated
│
│ with proxmox_vm_qemu.talos-control-plane["0"],
│ on vm-control-plane.tf line 13, in resource "proxmox_vm_qemu" "talos-control-plane":
│ 13: resource "proxmox_vm_qemu" "talos-control-plane" {
│
│ Use `disks` instead
│
│ (and one more similar warning elsewhere)
I read that the way of managing disks has changed from disk to disks in one of the versions of Proxmox.
I see https://github.com/Telmate/terraform-provider-proxmox has a new rc. I'll switch back to that provider instead of TheGameProfi/proxmox (which is also now archived). I'll see if I can make a commit later today.
Unfortunately I won't be able to update to the new telmate version as they have changed the way disks can be configured in a bad, not dynamic way: Telmate/terraform-provider-proxmox#907. This will probably kill my homelab automation (I'm not running the latest Proxmox 8.1 version) and I'm just not willing to risk that.
I'm looking for a solution to adapt your code to the new method of disk provisioning.
Good news, I was able to fix this issue by switching to the bpg/proxmox
provider.
I tested it with the latest proxmox release (8.2.2) and talos 1.7.1.