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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky compute API enablement leading to tainted project when auto_create_network set to false #18155

Closed
bharathkkb opened this issue May 16, 2024 · 1 comment
Labels

Comments

@bharathkkb
Copy link

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

Terraform v1.5.7
on

  • provider registry.terraform.io/hashicorp/google v4.84.0

Affected Resource(s)

google_project

Terraform Configuration

google_project with auto_create_network set to false which is default for project factory module

module "project" {
  source  = "terraform-google-modules/project-factory/google"
  version = "~> 14.5"
  name       = "foo"
  project_id = "foo"
  org_id     = var.org_id
  folder_id  = var.folder_id
  billing_account = var.billing_account
}

Debug Output

N/A this was running in CB and flaky

Expected Behavior

No response

Actual Behavior

Got an error during project creation like

Error: Error deleting default network in project foo: Error listing firewall rules in proj: googleapi: Error 403: Compute Engine API has not been used in project foo before or it is disabled. Enable it by visiting...

Steps to reproduce

  1. terraform apply

Important Factoids

This seems to be flaky and I was unable to repro locally

References

No response

@bharathkkb bharathkkb added the bug label May 16, 2024
@github-actions github-actions bot added forward/review In review; remove label to forward service/cloudresourcemanager-crm labels May 16, 2024
@bharathkkb
Copy link
Author

Looks like this might be fixed in a newer release
GoogleCloudPlatform/magic-modules#10046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant