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
$ 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?
no
The text was updated successfully, but these errors were encountered:
Includes network activity status in terraform state,
thus allowing terraform to update network resource
in case it is inactive (e.g. after hypervisor reboot
or `virsh net-destroy`)
System Information
Linux distribution
Ubuntu 24.04 LTS
Terraform version
$ 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
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
$ 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:
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
no
The text was updated successfully, but these errors were encountered: