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

Error: Error while installing hashicorp/vsphere v2.9.0: checksum list has no SHA-256 hash(...) #2258

Closed
4 tasks done
batchenr opened this issue Sep 9, 2024 · 5 comments
Closed
4 tasks done
Assignees
Labels
github/actions Type: GitHub Actions not-reproduced Status: Not Reproduced

Comments

@batchenr
Copy link

batchenr commented Sep 9, 2024

Community Guidelines

  • I have read and agree to the HashiCorp Community Guidelines .
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Terraform

v1.5.7

Terraform Provider

2.9.0

VMware vSphere

vSphere Client version 7.0.3.00000

Description

Hello, i am unable to install the vsphere source i have tried all releases but i get the same error.
main.tf:

terraform {
  required_providers {
    vsphere = {
      source  = "hashicorp/vsphere"
      version = "2.9.0"
    }
  }
}

provider "vsphere" {}

resource "vsphere_virtual_machine" "vm" {
  name             = "foo"
}

when i run terraform init:

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/vsphere versions matching "2.9.0"...
- Installing hashicorp/vsphere v2.9.0...
╷
│ Error: Failed to install provider
│ 
│ Error while installing hashicorp/vsphere v2.9.0: checksum list has no SHA-256 hash for
│ "terraform-provider-vsphere_2.9.0_darwin_arm64.zip"

I have tried also to run
terraform providers lock but it doesnt work also.

│ Error: Could not retrieve providers for locking
│ 
│ Terraform failed to fetch the requested providers for darwin_arm64 in order to calculate their checksums:
│ some providers could not be installed:
│ - registry.terraform.io/hashicorp/vsphere: checksum list has no SHA-256 hash for
│ "terraform-provider-vsphere_2.9.0_darwin_arm64.zip".

I have tried a different provider which worked fine so im gussing the issue is with vsphere and mac m1 ?
thanks!

Affected Resources or Data Sources

vsphere

Terraform Configuration

brew install terraform

Debug Output

added in description

Panic Output

No response

Expected Behavior

to install the resource via terraform init

Actual Behavior

│ Error: Failed to install provider

│ Error while installing hashicorp/vsphere v2.9.0: checksum list has no SHA-256 hash for
│ "terraform-provider-vsphere_2.9.0_darwin_arm64.zip"

Steps to Reproduce

terraform init

Environment Details

mac Apple M1 Max

Screenshots

No response

References

No response

@batchenr batchenr added bug Type: Bug needs-triage Status: Issue Needs Triage labels Sep 9, 2024
Copy link

github-actions bot commented Sep 9, 2024

Hello, batchenr! 🖐

Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.

If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.

@tenthirtyam tenthirtyam added github/actions Type: GitHub Actions and removed bug Type: Bug needs-triage Status: Issue Needs Triage labels Sep 9, 2024
@tenthirtyam
Copy link
Collaborator

Seems rather odd. The checksum is included in the terraform-provider-vsphere_2.9.0_SHA256SUMS file from releases.hashicorp.com.

38ccf8110bf0a5f13e7b4bf922c0cdae4391436c8815a9f2e2303e93f3cee898  terraform-provider-vsphere_2.9.0_darwin_amd64.zip
b25a77a04328163a330ba77260fe6dd9958e430e83a62a65844338e32d24ec83  terraform-provider-vsphere_2.9.0_darwin_arm64.zip
a00ea30204d23b61395f9742ed025114b7cf38da2c501fca8c21fd8d65db287f  terraform-provider-vsphere_2.9.0_freebsd_386.zip
18c1377f0ae294afe2ef537f9d2ea908d254ceccb57b9b59ea534bbb0faaacdf  terraform-provider-vsphere_2.9.0_freebsd_amd64.zip
9406a0e8c186060a835d4ae3dead270c1f0bf240c059446d1e3b3780d0e4e2cd  terraform-provider-vsphere_2.9.0_freebsd_arm.zip
a3f8616337ffcf9d33afe34f1196265a4707b4d9cc138649b3524c4b3d931cad  terraform-provider-vsphere_2.9.0_linux_386.zip
b32ba97602e1ac5c009cd581e9c0dae101522f705181a71439415f76256a1d57  terraform-provider-vsphere_2.9.0_linux_amd64.zip
4940f6bda21930c9023b9102115c31e6314fe79c7e5a049e7904d51012bc4f95  terraform-provider-vsphere_2.9.0_linux_arm.zip
83ebb7543b6a66d7020ee205debcee3f393caf67fe22d3de0e262449be5fe6b1  terraform-provider-vsphere_2.9.0_linux_arm64.zip
0fa82a384b25a58b65523e0ea4768fa1212b1f5cfc0c9379d31162454fedcc9d  terraform-provider-vsphere_2.9.0_manifest.json
888398456c7cf1a98112bc09f7ab1ad785e250605ec4b8d9774278f85bf1d79f  terraform-provider-vsphere_2.9.0_windows_386.zip
c7b0007d2fdd50f88d1fc2c378f3e1b8618b2acaad7760dc090593bc90734bde  terraform-provider-vsphere_2.9.0_windows_amd64.zip

@tenthirtyam
Copy link
Collaborator

I'm unable to reproduce the issue.

PS /Users/ryan> terraform init

Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/vsphere versions matching "2.9.0"...
- Installing hashicorp/vsphere v2.9.0...
- Installed hashicorp/vsphere v2.9.0 (signed by HashiCorp)
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.

PS /Users/ryan> sw_vers
ProductName:            macOS
ProductVersion:         14.6.1
BuildVersion:           23G93

PS /Users/ryan> uname -m
arm64

@tenthirtyam tenthirtyam added the not-reproduced Status: Not Reproduced label Sep 9, 2024
@tenthirtyam tenthirtyam self-assigned this Sep 9, 2024
@tenthirtyam tenthirtyam added this to the On Deck milestone Sep 9, 2024
@tenthirtyam tenthirtyam changed the title checksum list has no SHA-256 hash - Mac M1 Error: Error while installing hashicorp/vsphere v2.9.0: checksum list has no SHA-256 hash(...) Sep 9, 2024
@batchenr
Copy link
Author

Hey problem solved by opening this links:
releases.hashicorp.com

We have opened only registry.terraform.io so maybe that was the issue,
thanks anyways for the response!

@tenthirtyam tenthirtyam removed this from the On Deck milestone Sep 17, 2024
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
github/actions Type: GitHub Actions not-reproduced Status: Not Reproduced
Projects
None yet
Development

No branches or pull requests

2 participants