$ terraform -v
Terraform v1.9.5-dev
on linux_amd64
+ provider registry.terraform.io/dmacvicar/libvirt v0.7.6
Your version of Terraform is out of date! The latest version
is 1.9.5. You can update by downloading from https://www.terraform.io/downloads.html
[X ] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
Network is not started if it is down. If network is not set to autostart on boot, then after a restart it will be inactive. Terraform apply will not activate the network, and thus VMs that depend on that network will fail to start.
$ terraform apply
$ virsh net-destroy cluster
$ terraform apply
# note that terraform doesn't bring up the network. It must be manually started with virsh net-start cluster
If you include a domain definition, you'll get an error similar to the following if the cluster is not active:
╷
│ Error: error creating libvirt domain: Requested operation is not valid: network 'cluster' is not active
│
│ with module.worker.libvirt_domain.devlab_cluster,
│ on modules/libvirt_talos_host/main.tf line 27, in resource "libvirt_domain" "devlab_cluster":
│ 27: resource "libvirt_domain" "devlab_cluster" {
│
╵
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
System Information
Linux distribution
Ubuntu 24.04 LTS
Terraform version
Provider and libvirt versions
Description of Issue/Question
Network is not started if it is down. If network is not set to autostart on boot, then after a restart it will be inactive. Terraform apply will not activate the network, and thus VMs that depend on that network will fail to start.
Setup
Steps to Reproduce Issue
If you include a domain definition, you'll get an error similar to the following if the cluster is not active:
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
no