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_bigtable_instance
is incorrectly removed from state
#10086
google_bigtable_instance
is incorrectly removed from state
#10086
Comments
google_bigtable_instance
is removed from state incorrectlygoogle_bigtable_instance
is incorrectly removed from state
I was able to reproduce this. It does seems to be a bug. I will investigate further to see what should be done. Thanks for raising this. |
I think we've had the issue of logging come up before - possibly #12159? |
fixes hashicorp/terraform-provider-google#10086 Signed-off-by: Modular Magician <magic-modules@google.com>
fixes hashicorp#10086 Signed-off-by: Modular Magician <magic-modules@google.com>
fixes hashicorp/terraform-provider-google#10086 Signed-off-by: Modular Magician <magic-modules@google.com> Signed-off-by: Modular Magician <magic-modules@google.com>
fixes hashicorp/terraform-provider-google#10086 Signed-off-by: Modular Magician <magic-modules@google.com>
fixes hashicorp/terraform-provider-google#10086 Signed-off-by: Modular Magician <magic-modules@google.com> Signed-off-by: Modular Magician <magic-modules@google.com>
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. |
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
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
N/A
Expected Behavior
plan
should have failed due to the underlying error.TF_LOG=trace
is set.Actual Behavior
TF_LOG=trace
was set.Steps to Reproduce
terraform apply
bigtable
API.terraform plan
Important Factoids
I spent hours trying to figure this one out.
The underlying cause for us was that the Bigtable client didn't respect the configured
user_project_override
andbilling_project
, and was encountering this error:This has been fixed by #10060, which has not yet been incorporated into a release. It was really tough to debug as the request / response logs for these API calls do not appear to be logged by the Bigtable instance client, so it'd be nice if a fix for this issue included ensuring that the Bigtable client is using the HTTP client that is configured to log requests and responses [1].
Ignoring that, I believe that:
terraform-provider-google/google/resource_bigtable_instance.go
Lines 217 to 221 in a5e5535
...should be adjusted to only assume the resource is gone on a 404. There is precedent in other resources, e.g:
terraform-provider-google/google/resource_google_service_account_key.go
Lines 164 to 167 in 5c3dfa2
I'd also encourage any other places where this happens to be moved to this pattern where possible.
[1]
terraform-provider-google/google/config.go
Line 78 in a5e5535
References
The text was updated successfully, but these errors were encountered: