MacOS 12.0.1 (from where I run terraform with libvirt provider)
Linux distribution (the host where libvirt is installed)
Ubuntu 20.04.3 LTS
Terraform version
Terraform v1.1.2
on darwin_amd64
Provider and libvirt versions
./terraform-provider-libvirt_v0.6.12 0.6.12
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?
[ ] 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
Until today I was using version 0.6.3 of the libvirt provider and everything was working fine. I decided to update to version 0.6.12 and that's what I got. terraform init worked flawlessly.
Error: failed to dial libvirt: ssh: handshake failed: knownhosts: key is unknown
│
│ with provider["registry.terraform.io/dmacvicar/libvirt"],
│ on main.tf line 11, in provider "libvirt":
│ 11: provider "libvirt" {
Terraform init
Initializing the backend...
Initializing provider plugins...
- Finding dmacvicar/libvirt versions matching "0.6.12"...
- Finding latest version of hashicorp/template...
- Installing dmacvicar/libvirt v0.6.12...
- Installed dmacvicar/libvirt v0.6.12 (self-signed, key ID 96B1FE1A8D4E1EAB)
- Installing hashicorp/template v2.2.0...
- Installed hashicorp/template v2.2.0 (signed by HashiCorp)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
System Information
MacOS 12.0.1 (from where I run terraform with libvirt provider)
Linux distribution (the host where libvirt is installed)
Ubuntu 20.04.3 LTS
Terraform version
Provider and libvirt versions
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
Until today I was using version 0.6.3 of the libvirt provider and everything was working fine. I decided to update to version 0.6.12 and that's what I got.
terraform init
worked flawlessly.Setup
Steps to Reproduce Issue
Running a
terraform plan
this is what I get:Terraform init
Debug
Additional information:
Apparmor on the host where libvirt is installed, is disabled.