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): TestAccGKEHub2MembershipBinding_gkehubMembershipBindingBasicExample_update #18007

Open
SarahFrench opened this issue May 2, 2024 · 1 comment

Comments

@SarahFrench
Copy link
Member

SarahFrench commented May 2, 2024

Impacted tests

  • TestAccGKEHub2MembershipBinding_gkehubMembershipBindingBasicExample_update

Affected Resource(s)

  • google_gke_hub_scope

Failure rates

  • 100% since 2024-03-15

Message(s)

------- Stdout: -------
=== RUN   TestAccGKEHub2MembershipBinding_gkehubMembershipBindingBasicExample_update
=== PAUSE TestAccGKEHub2MembershipBinding_gkehubMembershipBindingBasicExample_update
=== CONT  TestAccGKEHub2MembershipBinding_gkehubMembershipBindingBasicExample_update
    vcr_utils.go:152: Step 3/4 error: Error running apply: exit status 1
        Error: Error when reading or editing Scope: googleapi: Error 400: Resource '"projects/ci-test-project-nightly-ga/locations/global/scopes/tf-test-scopenqat716cgq"' is already being used by resource(s) '"//gkehub.googleapis.com/projects/594424405950/locations/global/memberships/tf-test-membershipnqat716cgq/bindings/tf-test-membership-bindingnqat716cgq"'
--- FAIL: TestAccGKEHub2MembershipBinding_gkehubMembershipBindingBasicExample_update (902.27s)
FAIL

Nightly build test history

b/339026731

@SarahFrench
Copy link
Member Author

SarahFrench commented May 2, 2024

This problem appears to be issues with cleanup of resources after the test ends, due to trying to delete the scopes resource when it's still in use by the binding. The logs from the test show a DELETE and POST request with an empty body before the error is triggered

DELETE /v1/projects/ci-test-project-nightly-ga/locations/global/scopes/tf-test-scopenqat716cgq?alt=json HTTP/1.1

POST /v1/projects/ci-test-project-nightly-ga/locations/global/scopes?alt=json&scopeId=tf-test-scope2nqat716cgq HTTP/1.1
{}

---[ RESPONSE ]--------------------------------------
HTTP/2.0 400 Bad Request
{
  "error": {
    "code": 400,
    "message": "Resource '\"projects/ci-test-project-nightly-ga/locations/global/scopes/tf-test-scopenqat716cgq\"' is already being used by resource(s) '\"//gkehub.googleapis.com/projects/594424405950/locations/global/memberships/tf-test-membershipnqat716cgq/bindings/tf-test-membership-bindingnqat716cgq\"'",
    "status": "FAILED_PRECONDITION"
  }
}

@SarahFrench SarahFrench added service/gkehub forward/review In review; remove label to forward labels May 2, 2024
@github-actions github-actions bot added the forward/review In review; remove label to forward label May 2, 2024
@BBBmau BBBmau added this to the Goals milestone May 6, 2024
@BBBmau BBBmau added size/s and removed forward/review In review; remove label to forward labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants