-
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
panic when creating google_dataflow_flex_template_job #16799
Comments
It looks like the panic is coming from line https://github.com/hashicorp/terraform-provider-google-beta/blob/3dc9cd44ce8659541ab19f4f062ffe30e9589a9a/google-beta/services/dataflow/resource_dataflow_flex_template_job.go#L367 This code was introduced in GoogleCloudPlatform/magic-modules#9031 as part of the 5.0.0 major release. |
@n-oden I notice your configuration uses
Does that fix the issue for you? |
@melinath moving that value to the resource field does in fact work around the panic! |
Interesting! I did some more testing and was about to say that wouldn't fix the problem for you 😂 I was able to get things to work just fine whether enable_streaming_engine was set with the top-level field or using the additional_experiments field. But if I set Parameters were actually also previously being forced to be strings - we just weren't previously trying to cast that back into a boolean. I guess the API must accept either booleans or strings, so it worked fine back then? The fix here would either be to make the casting back to a boolean work properly, or just always send a boolean to the API, or to try to do something fancier with the parameters (instead of converting it to a string). I'm not sure what kinds of values we should expect so I'm not sure what the best fix would be. So: I think this is definitely still a valid issue & I'll forward it to the service team for resolution - but also I'm glad that there's a workaround that fixes it for you! |
Additionally, it would be great to get the enable_streaming_engine documented - since this is a handwritten resource that would need to happen following the "Handwritten" instructions here: https://googlecloudplatform.github.io/magic-modules/develop/resource/#add-documentation |
Yeah, somewhat ironically I'm the person who filed this issue some time ago, which seems relevant: |
Thank you @n-oden for raising this issue. Is there a |
@damondouglas see #16799 (comment) for details on why this is sometimes being cast to a string. |
The error |
@damondouglas the error here is happening at the Terraform level when trying to communicate with the API, not from the API trying to communicate with the pipeline language. It is definitely an error in the provider code. |
Even if this were somehow a correct situation for the API to return an error, errors from the API shouldn't result in a panic, and that would still need to be fixed on the provider side. (But that's not what's happening since we're not even getting to the API before panicking.) |
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
v1.5.3
Affected Resource(s)
google_dataflow_flex_template_job
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
References
b/316686467
The text was updated successfully, but these errors were encountered: