You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Terraform v1.8.5 on linux_amd64 and libvirt v0.8.1 and:
[root@kvm-host]:~# virsh version
Compiled against library: libvirt 8.0.0
Using library: libvirt 8.0.0
Using API: QEMU 8.0.0
Running hypervisor: QEMU 6.2.0
Whenever I run terraform plan -out=vm-1a.out && terraform apply vm-1a.out && terraform plan -out=vm-1b.out, I get a "warning" that the network_id is missing in libvirt_domain -> network_interface and will be added again:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.tci_kvm.libvirt_domain.this will be updated in-place
~ resource "libvirt_domain" "this" {
id = "9c4575f5-9a14-4147-995e-b866b68f788b"
name = "vtcl-qatestvm-zbl-110.domain.tld"
# (15 unchanged attributes hidden)
~ network_interface {
+ network_id = "9cdee972-fc42-4329-a013-5f15bcf3572a"
# (9 unchanged attributes hidden)
}
~ network_interface {
+ network_id = "0d9c0542-d26d-4a42-a5ae-ac5dc017bf95"
# (9 unchanged attributes hidden)
}
# (7 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
virsh net-dumpxml shows the UUID in network_id. Eg.:
Using Terraform v1.8.5 on linux_amd64 and libvirt v0.8.1 and:
Whenever I run
terraform plan -out=vm-1a.out && terraform apply vm-1a.out && terraform plan -out=vm-1b.out
, I get a "warning" that thenetwork_id
is missing inlibvirt_domain
->network_interface
and will be added again:virsh net-dumpxml
shows the UUID innetwork_id
. Eg.:The UUID stays constant over multiple terraform plan/apply runs.
Why's that?
Relevant terraform source code:
vm.tfvars
file contains:The text was updated successfully, but these errors were encountered: