Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0.0 not available for linux_amd64 #721

Open
jantari opened this issue Jan 10, 2025 · 4 comments
Open

Version 2.0.0 not available for linux_amd64 #721

jantari opened this issue Jan 10, 2025 · 4 comments
Labels

Comments

@jantari
Copy link

jantari commented Jan 10, 2025

Nutanix Cluster Information

Irrelevant

Terraform Version

Terraform v1.10.4
on linux_amd64

Affected Resource(s)

The whole provider

Terraform Configuration Files

provider "nutanix" {
  username = var.ntnx_user
  password = var.ntnx_password
  endpoint = "10.x.x.x"
  insecure = true
  port = 9440
  wait_timeout = 10
}

terraform {
  backend "consul" {
    # ...
  }

  required_providers {
    nutanix = {
      source = "nutanix/nutanix"
    }
  }

  required_version = ">= 1.3.0"
}

Debug Output

Panic Output


│ Error: Incompatible provider version

│ Provider registry.terraform.io/nutanix/nutanix v2.0.0 does not have a
│ package available for your current platform, linux_amd64.

│ Provider releases are separate from Terraform CLI releases, so not all
│ providers are available for all platforms. Other versions of this provider
│ may have different platforms supported.

Expected Behavior

Provider should install.

Actual Behavior

Provider is not available for the platform Linux x64

Steps to Reproduce

  1. terraform init

Important Factors

I am a bit confused that the latest provider is not available for the - presumably - most popular environment that a terraform provider would be used in? Linux x64? What is the provider available for then? Is it Windows-only now??

References

  • #0000 <!---Github Issue number --->
@rg-irm
Copy link

rg-irm commented Jan 14, 2025

This github repo shows that there is a release binary for linux_amd64 (terraform-provider-nutanix_2.0.0_linux_amd64.zip), but it appears that this hasn't been added to the terraform registry that is used by the provider. @abhimutant @Haroon-Dweikat-Ntx can you please help fix this?

@arechste
Copy link

FYI - same error for MacOS (silicon). We tried different versions and terraform 1.10.4 binary direct from release page did work for me.

I had the same issue with darwin_aarch64 (arm64). using different version of terraform and 1.10.4 was working.

@Haroon-Dweikat-Ntx
Copy link
Collaborator

Haroon-Dweikat-Ntx commented Jan 28, 2025

Hi @rg-irm
its looks that it works fine on Linux OS
im using Ubuntu Distributor:

 Ubuntu 22.04.5 LTS

Terraform Version

its work fine on Linux OS
my terraform version is :
Terraform v1.10.3 on linux_amd64

main.tf

terraform {
  required_providers {
    nutanix = {
      source = "nutanix/nutanix"
    }
  }
  required_version = ">= 1.3.0"
}

nutanix/nutanix 2.0.0 provider downloaded successfully

haroon@LAPTOP-PF3D0GPX:~/workspace/tf$ terraform init
Initializing the backend...
Initializing provider plugins...
- Finding latest version of nutanix/nutanix...
- Installing nutanix/nutanix v2.0.0...
- Installed nutanix/nutanix v2.0.0 (signed by a HashiCorp partner, key ID 8457185C2AB8CF55)
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.

@rg-irm
Copy link

rg-irm commented Jan 28, 2025

Yes, this appears to be working now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants