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.28k stars 1.72k forks source link

Failing test(s): TestAccTpuV2Vm_* #16957

Open zli82016 opened 8 months ago

zli82016 commented 8 months ago

Failure rates

Impacted tests

Affected Resource(s)

Nightly build test history

Message(s)

Error: Error waiting to create Vm: Error waiting for Creating Vm: Error code 8, message: There is no more capacity in the zone "us-central1-c"; you can queue your request to get capacity when available (see https://cloud.google.com/tpu/docs/queued-resources#request_a_preemptible_queued_resource) or try in another zone where Cloud TPU Nodes are offered (see https://cloud.google.com/tpu/docs/regions) [EID: 0xc99a6cf1ae827911]
zli82016 commented 8 months ago

Need to set an environment variable for the internal vm runtime version, which is only used for tests and not visible to public. https://buganizer.corp.google.com/issues/306250637#comment10

zli82016 commented 7 months ago

Waiting for the service team to add the provider tests projects into the allowlist of the internal vm runtime version.

Note: there is a concern from the service team.

zli82016 commented 4 months ago

Note: there is a concern from the service team to add our tests projects to the allowlist of the internal vm runtime version.

melinath commented 4 weeks ago

New errors:

Error: Error creating Vm: googleapi: Error 400: Cloud TPU received a bad request. NetworkConfig and NetworkConfigs fields are exclusive, please provide at most one.
 vcr_utils.go:152: Step 4/6 error running import: ImportStateVerify attributes not equivalent. Difference is shown below. The - symbol indicates attributes missing after import.
          map[string]string{
        -   "health": "TIMEOUT",
        +   "health": "HEALTHY",
          }
    testing_new.go:90: Error running post-test destroy, there may be dangling resources: exit status 1
        Error: Instance cannot be destroyed
          on terraform_plugin_test.tf line 2:
           2: resource "google_tpu_v2_vm" "tpu" {
        Resource google_tpu_v2_vm.tpu has lifecycle.prevent_destroy set, but the plan
        calls for this resource to be destroyed. To avoid this error and continue
        with the plan, either disable lifecycle.prevent_destroy or reduce the scope
        of the plan using the -target option.