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): TestAccComposer1Environment_withNodeConfig #15091

Comments

@SarahFrench
Copy link
Member

SarahFrench commented Jul 7, 2023

Failure rates

  • 100% since 2023-06-29
  • 75% since 2023-08-23 (TestAccComposer1Environment_withNodeConfig)

Impacted tests

  • TestAccComposer1Environment_withNodeConfig
  • TestAccComposerEnvironment_ComposerV2
  • TestAccComposerEnvironment_ComposerV2HighResilience
  • TestAccComposerEnvironment_UpdateComposerV2
  • TestAccComposerEnvironment_UpdateComposerV2WithTriggerer

Affected Resource(s)

  • google_composer_environment

Nightly build test history

  • See links above

Message(s)

------- Stdout: -------
=== RUN   TestAccComposerEnvironment_ComposerV2
=== PAUSE TestAccComposerEnvironment_ComposerV2
=== CONT  TestAccComposerEnvironment_ComposerV2
    vcr_utils.go:150: Step 1/3 error: Error running apply: exit status 1
        Error: Error waiting to create Environment: Error waiting for Creating Environment: Error code 9, message: Failed to create environment, but no error was surfaced. This can be caused by a lack of proper permissions. Check if this environment's service account 653407317329-compute@developer.gserviceaccount.com has the 'roles/composer.worker' role and there is no firewall inhibiting internal communications set. In case, it is a Compute default service account it should have Editor permissions. For the required permissions information, please, refer to https://cloud.google.com/composer/docs/how-to/access-control  https://cloud.google.com/composer/docs/troubleshooting-environment-creation page contains more troubleshooting instructions
          with google_composer_environment.test,
          on terraform_plugin_test.tf line 2, in resource "google_composer_environment" "test":
           2: resource "google_composer_environment" "test" {
--- FAIL: TestAccComposerEnvironment_ComposerV2 (3220.26s)
FAIL

Note (2023-12-18): TestAccComposer1Environment_withNodeConfig is failing due to the same error as above

b/326649868

@SarahFrench SarahFrench changed the title Failing test(s): TestAccComposerEnvironment_ComposerV2 (beta) Failing test(s): TestAccComposerEnvironment_ (beta) Jul 7, 2023
@rileykarson rileykarson added this to the Goals milestone Jul 10, 2023
@roaks3
Copy link
Collaborator

roaks3 commented Jul 14, 2023

The error message indicates a permission issue, which we've come across for these before. Unclear if this should be forwarded to the service team, since we may need to revisit how the permissions are being configured within our test environment.

@SarahFrench
Copy link
Member Author

I found some config from the Composer tests didn't include dependencies between google_composer_environment and the related google_project_iam_member resources, so tests may attempt to create environments before the necessary permissions are in place. See GoogleCloudPlatform/magic-modules#9610

I've made it so the PR won't close this issue.

@SarahFrench SarahFrench changed the title Failing test(s): TestAccComposerEnvironment_ (beta) Failing test(s): TestAccComposerEnvironment_* Dec 18, 2023
@SarahFrench SarahFrench added test-failure-50 50%+ fail rate and removed test-failure-100 100% fail rate labels Dec 18, 2023
@SarahFrench
Copy link
Member Author

I've updated this issue as it was a bit stale. The permissions issue is consistently seen for TestAccComposer1Environment_withNodeConfig and other tests pass without permissions issues.

@melinath
Copy link
Collaborator

Possibly this is a race condition? A time_sleep might help if the permissions just need to propagate.

@melinath
Copy link
Collaborator

Note: #14375 also impacts this test.

@melinath
Copy link
Collaborator

Marking for forwarding since this is related to a service account created by the test - not part of the test environment.

@roaks3
Copy link
Collaborator

roaks3 commented Oct 16, 2024

There was an attempted fix with GoogleCloudPlatform/magic-modules#11926 which adds a 3m wait after the permission is granted, but it is still failing at a very high rate. It occasionally does pass, but it seems like either the 3 minutes is not long enough, or we need another approach.

@melinath
Copy link
Collaborator

melinath commented Nov 8, 2024

This is still failing at a very high rate.

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 Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.