Open jordibalcellss opened 7 months ago
Hello,
what happens if you specify depends_on
on volume
resource?
I have a feeling this is not a bug but more like a side effect of Terraform. Because resources are not related, Terraform treats them as equal and tries to delete them at the same time which causes issues because they are related and should be deleted in order.
However, that's just a theory that needs to be verified.
System Information
Linux distribution
AlmaLinux 9.3 (Shamrock Pampas Cat)
Terraform version
Provider and libvirt versions
v0.7.6
Description of Issue/Question
Setup
Steps to Reproduce Issue
Apparently there's a bug related to
libvirt_volume
which prevents the actualqcow2
file from being removed.This causes a failure during removal of the storage pool (which comes next during execution of
terraform destroy
). Removal oflibvirt_volume.base_volume
times out and the next action fails:If
/mnt/kvm/disks/base.qcow2
is manually removed andterraform destroy
rerun, it works. Same for the underlying virsh management:Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? SELinux enabled Have you tried to reproduce the issue without them enabled? Yes, I did disable SELinux, getting the same result.