Telmate / terraform-provider-proxmox

Terraform provider plugin for proxmox
MIT License
2.21k stars 534 forks source link

Error: 500 CT 241 already running, `v3.0.1-rc5` #1172

Open AobaIwaki123 opened 1 day ago

AobaIwaki123 commented 1 day ago

Abstract

I faced an Error Error: 500 CT 241 already running when I create Proxmox LXC with version v3.0.1-rc5 After terraform apply, I got this error but Proxmox LXC is working properly. So, I guess health check system is something wrong. And also, I can not do terraform destroy on this LXC for some reason. It's really inconvenient. I'm really grad if it's fixed

Checked

Full Error Log

module.proxmox_lxc.proxmox_lxc.basic: Creating...
module.proxmox_lxc.proxmox_lxc.basic: Still creating... [10s elapsed]

│ Error: 500 CT 241 already running
│ 
│   with module.proxmox_lxc.proxmox_lxc.basic,
│   on ../../modules/proxmox_lxc/main.tf line 1, in resource "proxmox_lxc" "basic":
│    1: resource "proxmox_lxc" "basic" {

Environment

Here's my environment If you need more info, please tell me.

My Proxmox LXC Module

resource "proxmox_lxc" "basic" {
  features {
      nesting = true
  }

  vmid = var.vmid
  target_node  = var.target_node
  hostname     = var.hostname
  ssh_public_keys = var.public_key

  ostemplate   = "local:vztmpl/${var.template}.tar.zst"

  cores  = var.cores
  memory = var.memory

  unprivileged = true
  start       = true

  // Terraform will crash without rootfs defined
  rootfs {
    storage = var.storage
    size    = "${var.disk_size}G"
  }

    network {
        name = "eth0"
        bridge = var.bridge
        ip = "${var.ip_address}/24"
        gw = var.gateway
    }
}
AobaIwaki123 commented 1 day ago

I could not see this issue on 3.0.1-rc6. So, I close this issue

AobaIwaki123 commented 1 day ago

Sorry I did not update provider version from rc4 and I found same issue on rc6. So, I reopen this issue