Closed chrissng closed 4 years ago
I also get the error message Error: rpc error: code = Unavailable desc = transport is closing
using v2.18
. I cannot tell which resource is causing it though.
Have you cut an issue with the terraform core repo and submitted the crash.log file?
@tysen I believe this is not necessary as the TF devs would redirect us back to the provider.
I've bumped the google-beta provider to the latest version but the issue still persists. The stack trace suggests that the crash happened when there's a null object on this line https://github.com/terraform-providers/terraform-provider-google-beta/blob/release-2.18.1/google-beta/resource_container_cluster.go#L1198
Taken a look at the REST API responses.
On a working cluster, the response contains an empty shieldedNodes
object: https://gist.githubusercontent.com/chrissng/c01959daad9050de7339ab44bca03663/raw/63275eeabc54cf53d56517915c7fe14a078ff0e6/working_cluster_response.json Terraform operations works.
On the cluster that has the crashing issue (this), the response does not contain a shieldedNodes
object:
https://gist.github.com/chrissng/c01959daad9050de7339ab44bca03663/raw/63275eeabc54cf53d56517915c7fe14a078ff0e6/crash_cluster_response.json
Neither of these clusters have shielded nodes configured, so it is unknown why would the REST API return different results.
This PR should fix the issue: https://github.com/GoogleCloudPlatform/magic-modules/pull/2555
Same issue here, my work-around was to force update the cluster with gcloud
to get the empty shieldedNodes
object in the API response:
# gcloud beta container clusters update my-cluster --zone my-zone --no-enable-shielded-nodes
Pinning the google-beta provider to 2.17.0 also seems to be a temp fix, fwiw
Pinning the google-beta provider to 2.17.0 also seems to be a temp fix, fwiw
That's what I have also done.
https://github.com/GoogleCloudPlatform/magic-modules/pull/2555 is merged. Fix should be in next release.
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 π hashibot-feedback@hashicorp.com. Thanks!
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
I am using the terraform-google-kubernetes-engine tf module:
Debug Output
N/A
Panic Output
https://gist.github.com/chrissng/c01959daad9050de7339ab44bca03663#file-crash-log
Expected Behavior
The plan should succeed
Actual Behavior
The terraform google-beta provider crashed
Steps to Reproduce
terraform plan
Important Factoids
Terraform is ran with Terragrunt. I have multiple GKE clusters setup using the same terraform module, however only one particular cluster (this) has the crashing issue.
Issue persists without using Terragrunt (using terraform directly).
References
0000