hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.31k stars 1.73k forks source link

`google_compute_subnetwork` `external_ipv6_prefix` of any value causes 20+ minutes delay to apply then an Error 503 Internal Error #19335

Open AidanWelch opened 1 month ago

AidanWelch commented 1 month ago

Community Note

Terraform Version & Provider Version(s)

Terraform v1.9.4 on windows_amd64

Affected Resource(s)

google_compute_subnetwork

Terraform Configuration

terraform {
    required_providers {
        google = {
            source = "hashicorp/google"
            version = "6.0.1"
        }
    }
}

provider "google" {
    project = "project-id"
    region = "us-central1"
    zone = "us-central1-a"
}

// ipv6

resource "google_compute_network" "network-dual" {
    name = "test"
    auto_create_subnetworks = false
}

resource "google_compute_subnetwork" "subnetwork-dual" {

    name = "test"

    ip_cidr_range = "10.0.0.0/22"

    stack_type = "IPV4_IPV6"
    ipv6_access_type = "EXTERNAL"
    external_ipv6_prefix = 128

    network = google_compute_network.network-dual.id
}

Debug Output

No response

Expected Behavior

A correctly made subnet, or an indication of what a valid input would be

Actual Behavior

Error: Error creating Subnetwork: googleapi: Error 503: Internal error. Please try again or contact Google Support. (Code: '62105D52989F6.7E40067.2A183273'), backendError

Steps to reproduce

  1. terraform apply

Important Factoids

I tested with 0, 24, 32, 48, 64, 96, and 128

References

No response

b/364879433

ggtisc commented 4 weeks ago

Confirmed issue!

After applying the shared configuration and waiting 20 mins this results in a 503:

Error: Error creating Subnetwork: googleapi: Error 503: Internal error. Please try again or contact Google Support. (Code: '6214E59C44DE4.1C2678F.7C295312'), backendError