Loading...
Loading...
### Terraform Version ```shell Terraform v1.10.5 ``` ### Terraform Configuration Files ```terraform variable "remote_ssh_user" { description = "SSH user for remote host" type = string } variable "remote_ssh_host" { description = "Hostname for remote host" type = string } variable "remote_ssh_private_key" { description = "Path to private key for connecting to remote host" type = string } resource "tls_private_key" "vm_ssh_key" { algorithm = "ED25519" } resource "local_file" "vm_ssh_private_key_file" { filename = "${path.module}/.ssh/id_ed25519" content = tls_private_key.vm_ssh_key.private_key_pem file_permission = "0600" } terraform { required_providers { libvirt = { source = "dmacvicar/libvirt" } } } provider "libvirt" { # Remote connection to libvirtd via SSH uri = "qemu+ssh://${var.remote_ssh_user}@${var.remote_ssh_host}/system?keyfile=${var.remote_ssh_private_key}" } resource "libvirt_volume" "k8s_vm_disk" { name = "k8s-vm.qcow2" pool = "default" size = 10240 # 10 GiB } resource "libvirt_cloudinit_disk" "k8s_init" { name = "cloud-init.iso" user_data = templatefile("${path.module}/cloud-init/k8s.yaml", { ssh_public_key = tls_private_key.vm_ssh_key.public_key_openssh }) } resource "libvirt_domain" "k8s_vm" { name = "k8s-vm" memory = 2048 # 2 GiB vcpu = 2 disk { volume_id = libvirt_volume.k8s_vm_disk.id } network_interface { network_name = "default" } cloudinit = libvirt_cloudinit_disk.k8s_init.id } ``` ### Debug Output ``` ...debug output, or link to a gist... ``` ### Expected Behavior `tensorflow plan -detailed-exitcode` prints: ``` Plan: 5 to add, 0 to change, 0 to destroy. ``` And should thus return exit code 2. ### Actual Behavior Exit code 0 is returned. ### Steps to Reproduce 1. `terraform init` 2. `terraform plan -out plan.tfplan -detailed-exitcode` ### Additional Context I am running inside an Ubuntu 22.04 Docker container inside a GH Action workflow and am installing terraform via `hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd`. ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.