-
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
Support for Dataflow Flex job "update-by-replacement" #8408
Comments
Some testing with hashicorp/terraform-provider-google-beta#3069 suggests to me that this is not fully baked yet:
|
This issue seems to occur when the old job is in the "cancelling" state. The provider does not consider this to be a terminal state, so the job is seen as an existing resource while this is the case. Once the job finished cancelling the provider recognizes it as a missing resource, and applying at this point will create the job again. This is the behavior I saw with both v3.67.0 and v3.68.0, so I don't see how this problem would be related to hashicorp/terraform-provider-google-beta#3069. I think this issue deserves its own ticket.
This I was able to reproduce, and luckily isn't hard to fix. I will make a PR with the changes. |
@n-oden I have made hashicorp/terraform-provider-google-beta#3279 to address your second bullet point. |
Thank you! W/R/T the first issue I noted, I think there's a state-handling issue at this level as well: even if you wait for the cancelled/drained job to fully terminate, the provider does not see that the job needs to be re-created. |
Can you provide the steps you performed to trigger that issue? In my testing I did the following:
Are you doing something different? |
@andremarianiello to my aggravation this doesn't seem to be happening consistently, so right now I can just promise that the next time I run into it I'll post an update here. |
Opened #9227 to track the update-while-terminating issue. |
@andremarianiello I think I caught it in the act at last. The specific scenario seems to be:
|
@n-oden Is this a different issue? It doesn't sound like either of the issues you described initially. Regardless, it sounds like failed updates are updating the terraform state, which is an issue I ran into and fixed while working on the changes in GoogleCloudPlatform/magic-modules#4847, which is merged and released in v3.71.0. What version of the provider are you using? |
Interesting. I saw the behavior w/ Terraform Cloud and we don't have the provider version pinned in |
The other issues were closed or removed... It needs to be reviewed if it is still within the plans to make this enhancement |
It looks like this was mostly resolved by hashicorp/terraform-provider-google-beta#3069 (and upstreamed by GoogleCloudPlatform/magic-modules#4677), then patched with GoogleCloudPlatform/magic-modules#4847 and GoogleCloudPlatform/magic-modules#4845. Closing this as fixed. |
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
Description
In #5991, support was added to
google_dataflow_job
to "update-by-replacement" when certain criteria are met. could the same be done for the newergoogle_dataflow_flex_template_job
?New or Affected Resource(s)
References
b/359623870
The text was updated successfully, but these errors were encountered: