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

google_sql_database.users: operationInProgress error on terraform apply #1797

Closed
ghost opened this issue Jul 19, 2018 · 1 comment · Fixed by #1798
Closed

google_sql_database.users: operationInProgress error on terraform apply #1797

ghost opened this issue Jul 19, 2018 · 1 comment · Fixed by #1798
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jul 19, 2018

This issue was originally opened by @maryamklabib as hashicorp/terraform#9018. It was migrated here as a result of the provider split. The original body of the issue is below.


Hi there,

We're seeing google_sql_database.users: Error, failed to insert database [name] into instance [name]: googleapi: Error 403: Operation failed because another operation was already in progress., operationInProgress very frequently but not always. We see it only on google_sql_database.users, but terraform applying other resources reliably works.

Terraform Version

Terraform v0.7.4

Affected Resource(s)

  • google_sql_database.users

Terraform Configuration Files

resource "google_sql_database_instance" "master" {
  region = "${var.sql_region}"
  settings {
    tier = "${var.google_sql_db_tier}"
   }

  count = "${var.google_sql_instance_count}"
}

resource "google_sql_database" "users" {
  name = "${var.env_name}-db"
  instance = "${google_sql_database_instance.master.name}"

  count = "${var.google_sql_instance_count}"
}

resource "google_sql_user" "users" {
  name = "${var.google_sql_db_username}"
  password = "${var.google_sql_db_password}"
  instance = "${google_sql_database_instance.master.name}"
  host     = "${var.google_sql_db_host}"

  count = "${var.google_sql_instance_count}"
}

Debug Output

https://gist.github.com/maryamklabib/5681f634691f2e09782df962cf016ce8

Steps to Reproduce

  1. terraform apply

Important Factoids

We're creating First Generation GoogleSQL users

@ghost
Copy link
Author

ghost commented Nov 17, 2018

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant