terraform-provider-libvirt
terraform-provider-libvirt copied to clipboard
Terraform reports plugin version as 0.0.0
System Information
Linux distribution
Ubuntu 18.04
Terraform version
❯ terraform -v
Terraform v0.12.20
+ provider.libvirt (unversioned)
Provider and libvirt versions
❯ ./terraform-provider-libvirt --version
./terraform-provider-libvirt 0.6.1+git.1578064534.db13b678
Compiled against library: libvirt 4.0.0
Using library: libvirt 4.0.0
Description of Issue/Question
It seems like Terraform does not know the proper version of the provider, and is instead defaulting to 0.0.0. I would like to enforce version constraints on the provider in my modules, and this is preventing that.
From the output of TF_LOG=debug terraform init:
2020/01/25 18:35:06 [WARN] found legacy provider "terraform-provider-libvirt"
2020/01/25 18:35:06 [DEBUG] found valid plugin: "libvirt", "0.0.0", "/home/me/.terraform.d/plugins/linux_amd64/terraform-provider-libvirt"
2020/01/25 18:35:06 [DEBUG] plugin requirements: "libvirt"=">= v0.6.1"
Setup
❯ cat main.tf
terraform {
required_providers {
libvirt = ">= 0.6.1"
}
}
Steps to Reproduce Issue
Run terraform init with the main.tf provided above.
@MalloZup Just got hit by the same issue. After a bit of investigation found following doc: https://www.terraform.io/docs/configuration/providers.html#plugin-names-and-versions
Especially the part The naming scheme for provider plugins is terraform-provider-<NAME>_vX.Y.Z, and Terraform uses the name to understand the name and version of a particular provider binary.
So name yours terraform-provider-libvirt_v1.2.3
@alekc thx
I think this can be closed as provider is up for download from official Terraform registry where it is properly versioned.
ℹ️ ℹ️ ℹ️ ℹ️ ℹ️ ℹ️
This issue report is relevant to the legacy version of the provider, which is now in the v0.8 branch of this repository.
Future development is based on a new provider, which is not compatible with this one, nor does share code.
As the new provider solves many issues with the legacy, and to make development in my free time more enjoyable, I have decided to close all bugs for the legacy provider, and to ask to check if the bug would apply to the new one. This also to encourage trying the new version.
- https://registry.terraform.io/providers/dmacvicar/libvirt/latest
and check the documentation:
- https://github.com/dmacvicar/terraform-provider-libvirt/blob/main/README.md
- https://registry.terraform.io/providers/dmacvicar/libvirt/latest/docs
You are free to reopen the bug for v0.8. It may encourage someone to fix it. My efforts will go into the new provider.
I ask you to check the new provider and re-evaluate this bug. 🙏