Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test(s): TestAccContainerCluster_withFleetConfig #20253

Closed

Comments

@melinath
Copy link
Collaborator

melinath commented Nov 8, 2024

Impacted tests

  • TestAccContainerCluster_withFleetConfig

Affected Resource(s)

  • google_container_cluster

Failure rates

  • 100% since 2024-10-19

Message(s)

resource_container_cluster_test.go:4586: Step 3/5, expected an error with pattern, no match on: Error running apply: exit status 1
        Error: googleapi: Error 500: Internal error encountered.
        Details:
        [
          {
            "@type": "type.googleapis.com/google.rpc.RequestInfo",
            "requestId": "0x9f40120779f426ee"
          },
          {
            "@type": "type.googleapis.com/google.rpc.ErrorInfo",
            "domain": "container.googleapis.com",
            "reason": "INTERNAL:590"
          }
        ]
        , backendError
          with google_container_cluster.primary,

The only code change around this time was 34792dd, which doesn't seem like it should be related, but could be?

Nightly build test history

https://hashicorp.teamcity.com/test/6081626643080854856?currentProjectId=TerraformProviders_GoogleCloud_GOOGLE_NIGHTLYTESTS

b/378146824

@github-actions github-actions bot added forward/review In review; remove label to forward service/container labels Nov 8, 2024
@melinath melinath removed the forward/review In review; remove label to forward label Nov 8, 2024
@SarahFrench SarahFrench added this to the Goals milestone Nov 11, 2024
@wyardley
Copy link

wyardley commented Nov 12, 2024

So if I change the test to a valid project that I own, it fails successfully:

{
  "error": {
    "code": 400,
    "message": "\n\t- changing existing fleet host project is not supported\n\t- changing existing fleet membership is not supported.",
    "errors": [
      {
        "message": "\n\t- changing existing fleet host project is not supported\n\t- changing existing fleet membership is not supported.",
        "domain": "global",
        "reason": "badRequest"
      }
    ],
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "requestId": "0xfddf6212b58eacbc"
      }
    ]
  }
}

image

Whereas if I run the test as written with the project random-project, it gets this error (and retries a bunch of times)

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "errors": [
      {
        "message": "Internal error encountered.",
        "domain": "global",
        "reason": "backendError"
      }
    ],
    "status": "INTERNAL",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "requestId": "0x9c934b86724db2e0"
      },
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "INTERNAL:590",
        "domain": "container.googleapis.com"
      }
    ]
  }
}

and then eventually errors this way

  | Error: Put "https://container.googleapis.com/v1/projects/xxxx/locations/us-central1-a/clusters/tf-test-cluster-tc7fsaypja?alt=json&prettyPrint=false": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
  | 
  |   with google_container_cluster.primary,
  |   on terraform_plugin_test.tf line 2, in resource "google_container_cluster" "primary":
  |    2: resource "google_container_cluster" "primary" {

wyardley added a commit to wyardley/magic-modules that referenced this issue Nov 12, 2024
Fixes hashicorp/terraform-provider-google#20253

Use a valid (but different) project for the test that migrating the
fleet or cluster to a different project fails
@wyardley
Copy link

Seems like it just has to be any valid project name, not one that the current user has access to.
Not sure if the right fix here is to use BootstrapProject (which exists, but seems to be unused?) to create a project, or just hardcode a different project that we know is valid.

I tried an inaccessible project that I know exists, as well as tdx-guest-images.

wyardley added a commit to wyardley/magic-modules that referenced this issue Nov 13, 2024
Fixes hashicorp/terraform-provider-google#20253

Use a valid (but different) project for the test that migrating the
fleet or cluster to a different project fails
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.