bpg / terraform-provider-proxmox

Terraform Provider for Proxmox
https://registry.terraform.io/providers/bpg/proxmox
Mozilla Public License 2.0
874 stars 139 forks source link

Terraform destroy of a VM is never finishing #1620

Open ckhordiasma opened 2 weeks ago

ckhordiasma commented 2 weeks ago

Describe the bug I have some VMs that get stuck on the "qmdestroy" task when I try to terraform destroy them. I have stop_on_destroy set to true (tried true/false with same results).

To Reproduce Create a VM resource (I am using a module I made: https://github.com/kodama-labs/tf-proxmox/tree/master/vm) and terraform destroy it. Terraform gets stuck on "still destroying", and proxmox stays stuck on qmdestroy of that task forever.

Workaround My workaround is to stop the qmdestroy task and then delete the VM from the proxmox web UI (or delete the vm conf file from the proxmox host)

Additional context Proxmox output:

()
trying to acquire lock...
 OK
  Logical volume "vm-105-cloudinit" successfully removed.
trying to acquire lock...
 OK
  Logical volume "vm-105-disk-0" successfully removed.