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

Failing test(s): TestAccVertexAIIndexEndpoint_updated #19309

Open BBBmau opened 2 weeks ago

BBBmau commented 2 weeks ago

Impacted tests

Affected Resource(s)

Failure rates

Message(s)

=== RUN   TestAccVertexAIIndexEndpoint_updated
=== PAUSE TestAccVertexAIIndexEndpoint_updated
=== CONT  TestAccVertexAIIndexEndpoint_updated
    resource_vertex_ai_index_endpoint_test.go:22: Step 1/4 error: Error running apply: exit status 1
        Error: Error creating IndexEndpoint: googleapi: Error 400: Currently only one VPC network per user project is supported. Your project is already linked to https://www.googleapis.com/compute/v1/projects/ci-test-project-nightly-ga/global/networks/tf-bootstrap-net-vpc-network-1
        To change the VPC network, please undeploy all Vertex AI deployment resources, delete all endpoint resources, and then retry creating resources in 30 mins.
          with google_vertex_ai_index_endpoint.index_endpoint,
          on terraform_plugin_test.tf line 2, in resource "google_vertex_ai_index_endpoint" "index_endpoint":
           2: resource "google_vertex_ai_index_endpoint" "index_endpoint" {
--- FAIL: TestAccVertexAIIndexEndpoint_updated (28.89s)
FAIL

Nightly build test history

b/364309625

BBBmau commented 2 weeks ago

Looks like it could be related to the addition of the deployed_index resource. Tests began to fail once deployed_index tests were included in the nightly tests.

deployed_index test history: https://hashicorp.teamcity.com/test/-7657025106797983469?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_NIGHTLYTESTS&expandTestHistoryChartSection=true

SarahFrench commented 1 week ago

Note from triage: Looks like this test is trying to create a new bootstrapped VPC, but it should use tf-bootstrap-net-vpc-network-1. Updating the test may be a sufficient fix