-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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_instance.settings.backup_configuration.binary_log_enabled is not changing #6121
google_sql_database_instance.settings.backup_configuration.binary_log_enabled is not changing #6121
Comments
When i tried changing "Enable point-in-time recovery" (of CloudSQL MySQL) from I don't think we are invoking that restart when we change |
At the same time, when we do change |
@syedrakib if backup_configuration block is doc - https://www.terraform.io/docs/providers/google/r/sql_database_instance.html binary_log_enabled - (Optional) True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Let me know if i can close this issue if it fix your problem |
I don't quite understand what is meant by "API sets the :/ |
According to the referred doc, if Here is what i have in my backup_configuration:
That complies with the doc, right? The expectation here is, backup will be disabled and binary_log will be disabled. Thus, it should set the value to |
When backup is disabled, binary_log should also be disabled, API accepts it. If backup is disabled and binary_log is enable API throws
The following state is invalid, i am not sure how apply command worked for you.
can you share your provider version ? |
Hi @venkykuberan . Thanks for the reply. Yes that's exactly the bug i guess how come it worked on the first place. I am using these provider versions:
|
Just now i have manually changed the value of My main.tf file still says Then i tried I check the CloudSQL in GCP. Both the values for "Automated Backups" & "Enable point-in-time recovery" are both unchecked (false). Why is terraform seeing it |
Please follow the above steps, for what ever changes you want to make in config and verify your change is accepted. |
Ok. Ignore that. That was me just sharing that even when i explicitly change the value in the sate file myself, it reverts back to what it was. |
The bottom-line of the problem is..... in GCP CloudSQL MySQL instance:
Then why is it that the Mentioning the versions here again for reference:
|
Hi... just following up on the issue with this one..... could we identify the bug with this? |
Fix will be going out in 3.19.0 |
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! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
0.12.24
Affected Resource(s)
Synopsis
I spinned up ClousSQLMysQL with
settings.backup_configuration.binary_log_enabled
set totrue
. Now i am trying to set it tofalse
with thisThe
terraform plan
said:The
terraform apply
was successful sayingThe Issue
However, when i plan and apply again, it is again saying the same things as if the previous changes were not performed.
Verification
I also looked into the TFState file and it shows the following even though the
plan-apply
steps said it changedbackup_configuration.binary_log_enabled
tofalse
successfullyThe text was updated successfully, but these errors were encountered: