Skip to content

Failed to query available provider packages error when leveraging head of beta-autopilot-private-cluster alongside head of network/google module #2210

@shermanericts

Description

@shermanericts

TL;DR

When leveraging the following two modules (github.com/terraform-google-modules/terraform-google-network and the beta-autopilot-private-cluster module in the terraform-google-kubernetes-engine), I'm receiving the following error:

│ Could not retrieve the list of available versions for provider hashicorp/google-beta: no available
│ releases match the given constraints >= 3.43.0, >= 4.64.0, >= 5.36.0, >= 5.40.0, != 5.44.0, < 6.2.0,
│ >= 6.13.0, < 7.0.0

Expected behavior

As of 12/10/2024, a common google-beta provider version of 5.45.0 was found. Moreover I noticed that there is an upgrade to v10.0.0 of the terraform google network provider here.

I would think there would be a working corrolary provider version in the beta-autopilot-private-cluster as well. Additionally I would have thought that downgrading terraform-google-network to 9.3.0 would have worked here.


Observed behavior

│ Could not retrieve the list of available versions for provider hashicorp/google-beta: no available
│ releases match the given constraints >= 3.43.0, >= 4.64.0, >= 5.36.0, >= 5.40.0, != 5.44.0, < 6.2.0,
│ >= 6.13.0, < 7.0.0

Terraform Configuration

Here is the heirarchy of my modules, starting at the root module

root_module/ (written by me)
|-- customer_gke_module (written by me)
    |-- gke_module (sourced below)
    |-- vpc_module (sourced below)
module "vpc" {
  source                  = "terraform-google-modules/network/google"
...



module "gke" {
  source = "github.com/terraform-google-modules/terraform-google-kubernetes-engine//modules/beta-autopilot-private-cluster?ref=main"

...

Terraform Version

Terraform v1.9.3. (i'll try again with an update to 1.10.2 latest but afaict it does not appear to be the root cause).

Additional information

I've tried the following:
* Pinning the version of "terraform-google-modules/network/google" back to 9.3.0 to no avail.

Here's what terraform providers gives me, for what it's worth:

  │   ├── module.gke
    │       ├── provider[registry.terraform.io/hashicorp/google] >= 5.40.0, != 5.44.0, < 6.2.0, < 7.0.0
    │       ├── provider[registry.terraform.io/hashicorp/google-beta] >= 5.40.0, != 5.44.0, < 6.2.0, < 7.0.0
    │       ├── provider[registry.terraform.io/hashicorp/kubernetes] ~> 2.10
    │       └── provider[registry.terraform.io/hashicorp/random] >= 2.1.0
    │   ├── module.vpc
    │       ├── provider[registry.terraform.io/hashicorp/google-beta] >= 4.64.0, < 7.0.0
    │       ├── provider[registry.terraform.io/hashicorp/google] >= 4.64.0, < 7.0.0
    │       ├── module.vpc
    │           ├── provider[registry.terraform.io/hashicorp/google] >= 4.64.0, < 7.0.0
    │           └── provider[registry.terraform.io/hashicorp/google-beta] >= 6.13.0, < 7.0.0
    │       ├── module.firewall_rules
    │           └── provider[registry.terraform.io/hashicorp/google] >= 3.33.0, < 7.0.0
    │       ├── module.routes
    │           └── provider[registry.terraform.io/hashicorp/google] >= 3.83.0, < 7.0.0
    │       └── module.subnets
    │           └── provider[registry.terraform.io/hashicorp/google] >= 4.25.0, < 7.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions