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

Provider versions 2.21.0 and 2.22.0 missing in Terraform Registry #610

Closed
S1M0NM opened this issue Mar 19, 2025 · 6 comments
Closed

Provider versions 2.21.0 and 2.22.0 missing in Terraform Registry #610

S1M0NM opened this issue Mar 19, 2025 · 6 comments

Comments

@S1M0NM
Copy link
Contributor

S1M0NM commented Mar 19, 2025

Hi, I updated the provider to version 2.21.0 yesterday and when I tried to execute a terraform plan in our pipeline, I got the following error message:

╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider
│ confluentinc/confluent: the previously-selected version 2.21.0 is no longer
│ available
│ 
│ To see which modules are currently depending on confluentinc/confluent and
│ what versions are specified, run the following command:
│     terraform providers
╵

Version 2.21.0 actually no longer appears to be available in the Terraform Registry, as only version 2.20.0 is displayed there.
Same applies to the latest release of 2.22.0

Image

@linouk23
Copy link
Contributor

linouk23 commented Mar 19, 2025

@S1M0NM internally we could see something similar, could you try to

  1. Use a different browser and perform a hard reload.
  2. Downgrade the version of terraform to 1.5.0 or something.
  3. Could you also share the output of terraform version?

Image

@S1M0NM
Copy link
Contributor Author

S1M0NM commented Mar 19, 2025

@linouk23 i already tried different browsers (Chrome, Edge, Firefox, Safari), which are all showing 2.20.0 as the latest version.

> terraform version
Terraform v1.9.5
on windows_amd64
+ provider registry.terraform.io/confluentinc/confluent v2.21.0
+ provider registry.terraform.io/hashicorp/azuread v3.1.0
+ provider registry.terraform.io/hashicorp/azurerm v4.0.1
+ provider registry.terraform.io/hashicorp/random v3.7.1

Your version of Terraform is out of date! The latest version
is 1.11.2. You can update by downloading from https://www.terraform.io/downloads.html

Our pipeline infrastructure uses 1.11.1 as current terraform version and is also unable to find versions >2.20.0

I also found this open incident for registry.terraform.io - could this be causing the issue?

@linouk23
Copy link
Contributor

➜  terraform-provider-confluent git:(datagen-connector) ✗ cd examples/configurations/basic-kafka-acls 
➜  basic-kafka-acls git:(datagen-connector) ✗ tfenv list
  1.10.3
  1.9.8
* 1.5.0 (set by /usr/local/Cellar/tfenv/3.0.0/version)
  1.1.6
  0.14.0
➜  basic-kafka-acls git:(datagen-connector) ✗ tfenv use 1.9.8
Switching default version to v1.9.8
Default version (when not overridden by .terraform-version or TFENV_TERRAFORM_VERSION) is now: 1.9.8
➜  basic-kafka-acls git:(datagen-connector) ✗ terraform version            
Terraform v1.9.8
on darwin_amd64

Your version of Terraform is out of date! The latest version
is 1.11.2. You can update by downloading from https://www.terraform.io/downloads.html
➜  basic-kafka-acls git:(datagen-connector) ✗ terraform init   
Initializing the backend...
Initializing provider plugins...
- Finding confluentinc/confluent versions matching "2.22.0"...
╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider confluentinc/confluent: no available releases match the given constraints 2.22.0
╵
➜  basic-kafka-acls git:(datagen-connector) ✗ tfenv use 1.5.0
Switching default version to v1.5.0
Default version (when not overridden by .terraform-version or TFENV_TERRAFORM_VERSION) is now: 1.5.0
➜  basic-kafka-acls git:(datagen-connector) ✗ terraform version
Terraform v1.5.0
on darwin_amd64

Your version of Terraform is out of date! The latest version
is 1.11.2. You can update by downloading from https://www.terraform.io/downloads.html
➜  basic-kafka-acls git:(datagen-connector) ✗ terraform init   

Initializing the backend... outputs.tf    variables.tf

Initializing provider plugins...
- Finding confluentinc/confluent versions matching "2.22.0"...
- Installing confluentinc/confluent v2.22.0...
- Installed confluentinc/confluent v2.22.0 (self-signed, key ID 5186AD92BC23B670)

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.

@linouk23
Copy link
Contributor

@S1M0NM that's a great find! I think your observation is correct, as terraform init does use HashiCorp Registry.

@linouk23
Copy link
Contributor

Image

@S1M0NM
Copy link
Contributor Author

S1M0NM commented Mar 19, 2025

Seems like the issue got resolved. Both versions are now visible within the terraform registry!

image

@S1M0NM S1M0NM closed this as completed Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants