dmacvicar / terraform-provider-libvirt

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

terraform-provider-libvirt_v0.6.14 plugin crashed with gitlab-ci terraform feature #932

Closed jbhfenris closed 2 years ago

jbhfenris commented 2 years ago

System Information

NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04"

Terraform version

Using terraform integration within Gitlab-ci (v14.1.8) and Gitlab runners

registry.gitlab.com/gitlab-org/terraform-images/stable:latest

Provider and libvirt versions

0.6.14


Description of Issue/Question

Crash at terraform plan stage when using gitlab-terraform feature with libvirt plugin :

gitlab-terraform plan Initializing modules... Initializing the backend... Initializing provider plugins...

Setup

provider.tf file

provider "libvirt" {

uri = "qemu:///system"

uri = "qemu+ssh://IP ADDRESS/system?keyfile=/root/.ssh/ssh_priv&sshauth=privkey" }

Private ssh key have been provisioned with a before_script entry just before calling the "plan" command

jbhfenris commented 2 years ago

Not an issue. Problem of copy ssh private key at the correct format on the gitlab-ci runner.