-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
New Google Cloud SQL failover replica feature shouldn't try to delete root user #100
Comments
@ryan-mf this doesn't seem to be an issue anymore- it looks like cloud sql stopped creating a root user for the failover replica, so terraform has stopped trying to delete it. Closing now, but feel free to reopen if you notice this still occurring! |
@danawillow Still happening - if there had been a root user added previously to master instance. * module.sql.google_sql_database_instance.failover: 1 error(s) occurred:
* google_sql_database_instance.failover: Error, failed to delete default 'root'@'*' user, but the database was created successfully: googleapi: Error 400: The requested operation is not valid for a read-replica instance., errorReadReplicaInvalidOperation My setup is similar to mentioned in this ticket. Thanks! |
I just ran into this again. So yes, still happening. Just upgraded to Terraform 0.10.2. |
Opened new, nearly identical ticket #347 because this is happening again. |
upgrade guide changes based on browsing commits
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! |
This issue was originally opened by @ryan-mf as hashicorp/terraform#14947. It was migrated here as part of the provider split. The original body of the issue is below.
Hi there,
Terraform Version
0.9.6
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The resource should be created without issue.
Actual Behavior
The resource is created, but with error output in red:
Steps to Reproduce
Important Factoids
On page https://www.terraform.io/docs/providers/google/r/sql_database_instance.html, at the top in yellow it specifically says this resource type will delete the default 'root' user that Cloud SQL creates for you, and you need to define your own root user (which I do). However, this isn't a valid action for the failover replica.
The text was updated successfully, but these errors were encountered: