Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
libvirt_domain.win10_terraform_01: Creating...
╷
│ Error: error creating libvirt domain: Failed to open file '/usr/share/ovmf/x64/OVMF_VARS.fd': No such file or directory
│
│ with libvirt_domain.win10_terraform_01,
│ on main.tf line 90, in resource "libvirt_domain" "win10_terraform_01":
│ 90: resource "libvirt_domain" "win10_terraform_01" {
│
╵
The second time you apply, it will result in
o you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
libvirt_domain.win10_terraform_01: Creating...
╷
│ Error: error defining libvirt domain: operation failed: domain 'win10_terraform_01' already exists with uuid 3142bd26-c41f-40b1-9959-b38ecfd406dd
│
│ with libvirt_domain.win10_terraform_01,
│ on main.tf line 90, in resource "libvirt_domain" "win10_terraform_01":
│ 90: resource "libvirt_domain" "win10_terraform_01" {
│
╵
Because the domain would have been created despite the error in the previous case.
Note: line are not matching because I removed what was not necessary after, sorry for that. Since the line is quoted, it's easy to fetch the correct location.
Expected result
The domain should not have been created in the first step, or be destroyed before terraform exits.
System Information
Linux distribution
Archlinux
Terraform version
Provider and libvirt versions
Checklist
Description of Issue/Question
Setup
(Please provide the full main.tf file for reproducing the issue (Be sure to remove sensitive information)
The file in nvram must be missing to reproduce:
Steps to Reproduce Issue
(Include debug logs if possible and relevant).
The second time you apply, it will result in
Because the domain would have been created despite the error in the previous case.
Note: line are not matching because I removed what was not necessary after, sorry for that. Since the line is quoted, it's easy to fetch the correct location.
Expected result
The domain should not have been created in the first step, or be destroyed before terraform exits.