Open AlexFernandes-MOVAI opened 6 months ago
Hey @AlexFernandes-MOVAI 👋🏼
Honestly, no much ideas what is causing this. It looks like you're simultaneously deleting at least 3 VMs, so there could be some race conditions in the PVE. Or perhaps IO bottleneck on your storage, and the task inside PVE times out.
The provider does not do much in regards of the resource destruction, it just submits a task and waits for its completion.
As an experiment you may try with different parallelism value, and see if reducing it helps.
Thanks for the quick feedback @bpg and the hardwork on this repo which is helping us a lot for a few months now.
I don't believe the storage can be the issue since it is an internal SSD drive. I will try to play with parallelism and post here the conclusions
Hm... In fairness, if the VM deletion completes without other errors, we could probably just ignore this status and assume the task has successfully finished.
This issue is just an open question to know what can cause this error and if the issue is fixed in later version of bpg provider or proxmox ....
Bug Description
On a production Proxmox server running version 7.4, we randomly run into a teardown error of type
imgdel:local:ci@pam: unable to read tail (got 0 bytes)
To Reproduce Steps to reproduce the behavior:
proxmox_virtual_environment_vm
with a singleterraform apply
terraform destroy
The terraform used looks like the one below, where some variables are defined:
Expected behavior The terraform destroy should always succeed without failures
Logs