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): TestAccNetappVolume_netapp* #18909

Open SarahFrench opened 1 month ago

SarahFrench commented 1 month ago

Impacted tests

Affected Resource(s)

Failure rates

Message(s)

    vcr_utils.go:152: Step 11/16 error: Error running apply: exit status 1
        Error: Error waiting to create backupVault: Error waiting for Creating backupVault: Error code 3, message: bad request error: "Error creating backup vault - Creation of multiple backup vaults is not supported for a project within a region."
          with google_netapp_backup_vault.backup-vault,
          on terraform_plugin_test.tf line 37, in resource "google_netapp_backup_vault" "backup-vault":
          37: resource "google_netapp_backup_vault" "backup-vault" {

Same for all 3 named tests

Nightly build test history

b/357636823

SarahFrench commented 1 month ago

The example used to generate TestAccNetappbackup_netappBackupExample uses us-central1, and this is the default region used in all tests.

We could make different tests use different regions.

Mehul3217 commented 3 weeks ago

Can we please get the list of projects that are being used for above tests, looks like some projects requires cleaning up of resources.

trodge commented 3 weeks ago

Any cleanup for these resources should be handled by automated sweepers. I agree with @SarahFrench that the most likely solution is going to be putting each test in its own region, unless we know that the sweepers are not working.

melinath commented 3 weeks ago

@Mehul3217 responded internally on b/357940045

Mehul3217 commented 2 weeks ago

We have raised a PR for manual sweepers: https://github.com/GoogleCloudPlatform/magic-modules/pull/11467