dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.6k stars 459 forks source link

ssh connection URI broken since 0.8.0 #1130

Open xwu2intel opened 1 week ago

xwu2intel commented 1 week ago

System Information

Linux distribution

Ubuntu 24.04

Terraform version

1.9.8

Provider and libvirt versions

0.8.0

Description of Issue/Question

The connection URI string: qemu+ssh://${var.user}@${var.host}:${var.port}/system failed to connect since version 0.8.0. where var.user=xwu2, var.host=172.2.3.4 (IP address) and var.port=22. The same connection URI works on previous versions <= 0.7.6.

Additional information:

1: 2024-11-18T14:23:54.270-0800 [ERROR] provider.terraform-provider-libvirt_v0.8.0: Response contains error diagnostic: @module=sdk.proto tf_rpc=Configure diagnostic_detail="" diagnostic_severity=ERROR diagnostic_summary="failed to connect: failed to connect to remote host '172.2.3.4:22': dial tcp: lookup 172.2.3.4:22: no such host" tf_proto_version=5.6 tf_provider_addr=provider tf_req_id=6fef2920-9b99-3870-66f3-bec4bb90b186 @caller=github.com/hashicorp/terraform-plugin-go@v0.24.0/tfprotov5/internal/diag/diagnostics.go:58 timestamp=2024-11-18T14:23:54.270-0800