[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[ ] Make sure you explain why this option is important to you, why it should be important to everyone. Describe your use-case with detail and provide examples where possible.
[ ] If it is a very special case, consider using the XSLT support in the provider to tweak the definition instead of opening an issue
[ ] Maintainers do not have expertise in every libvirt setting, so please, describe the feature and how it is used. Link to the appropriate documentation
[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
Setup
(Please provide the full main.tf file for reproducing the issue (Be sure to remove sensitive information)
The whole environment, including main.tf, is here:
❯ terraform destroy -force
data.template_file.control_plane_commands: Refreshing state... [id=4d9d2a56f2041f465e03c3f92bda337b5dd08bc82e482be6846453beee515c5d]
data.template_file.control_plane_cloud_init[0]: Refreshing state... [id=e13accf8c798d30ba980ba1867d12e5370fc7cddc6bc4d03ff6cf5e5baf51f51]
libvirt_volume.lockc_image: Refreshing state... [id=/var/lib/libvirt/images/lockc-image]
libvirt_network.lockc_network: Refreshing state... [id=b559738a-0cd4-473c-8fab-ac58c0d084a8]
libvirt_cloudinit_disk.control_plane[0]: Refreshing state... [id=/var/lib/libvirt/images/lockc-control-plane-cloudinit-disk-0;a7d18d66-afef-4f02-9612-b389fca90f44]
libvirt_volume.control_plane[0]: Refreshing state... [id=/var/lib/libvirt/images/lockc-control-plane-volume-0]
libvirt_volume.worker[0]: Refreshing state... [id=/var/lib/libvirt/images/lockc-worker-volume-0]
libvirt_domain.control_plane[0]: Refreshing state... [id=4ed32670-cf81-401e-8b8b-b6f83d1335c3]
Error: Invalid index
on output.tf line 4, in output "ip_control_planes":
4: libvirt_domain.control_plane.*.network_interface.0.addresses.0,
The given key does not identify an element in this collection value.
Error: Invalid index
on worker.tf line 11, in data "template_file" "worker_commands":
11: control_plane_ip = libvirt_domain.control_plane.0.network_interface.0.addresses.0
|----------------
| libvirt_domain.control_plane[0].network_interface[0].addresses is empty list of string
The given key does not identify an element in this collection value.
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
Have you tried to reproduce the issue without them enabled?
System Information
Linux distribution
openSUSE 15.3
Terraform version
Provider and libvirt versions
Libvirt version:
7.1.0-6.5.1
Checklist
[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[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
Setup
(Please provide the full main.tf file for reproducing the issue (Be sure to remove sensitive information)
The whole environment, including main.tf, is here:
https://github.com/rancher-sandbox/lockc/tree/main/contrib/terraform/libvirt
Steps to Reproduce Issue
(Include debug logs if possible and relevant).
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? Have you tried to reproduce the issue without them enabled?
No, I don't have SELinux or Apparmor enabled.