-
Notifications
You must be signed in to change notification settings - Fork 153
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
Terraform replan timed out while waiting for condition #4008
Comments
@eloo-abi Do you have any logs from the process, how long did it take? did it fail? |
according to the runtime of the pods i would say its just a few seconds
|
Hi @eloo-abi thanks for this, I've had a look, and it should wait for up to 30 seconds before timing out. But, I don't see any cases in your output that indicate that any are reaching that long. Could a replan take over 30s? If so, we could allow you to configure the timeout value, but clearly, it can (and will) timeout at some point. |
as the plan is just creating a file (some example) i guess its not related to long planning.. maybe its more about the "waiting for condition" part.. i'm not sure what the implementation there is.. maybe its waiting to have the terraform resource in a specific state? because i have seen similar implementations in the past and mostly the problem was that the condition/state was changed to fast for the cli to remember.. e.g. we assume the cli is awaiting the state and the resources states is changing like this
then the cli would only see
and as it is waiting for "state 2" its going to timeout could this maybe the case? |
@eloo-abi I'm reading the code to see if that could be the case, but I don't think so, it's basically waiting for the plan pending state to be populated. https://github.com/weaveworks/tf-controller/blob/main/tfctl/replan.go#L39-L54 I'm trying to reproduce this. |
We have recently fixed a related issue in the Terraform Controller: The fix is available for you to try from the main branch image. |
Cc @yiannistri |
Describe the bug
Doing a
terraform replan
i get the whole time a timeout.timed out waiting for the condition
When i check the terraform k8s object i see the replan is triggered but i never get the result in my cli.
Environment
To Reproduce
Steps to reproduce the behavior:
gitops replan terraform tf-resource
Error: timed out waiting for the condition
Expected behavior
I would expect to get the plan output in the console instead of an error.
Actual Behavior
Additional Context (screenshots, logs, etc)
Here we can see that the replan is triggered
The text was updated successfully, but these errors were encountered: