-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Failure when plan has objects changed outside of terraform #433
Comments
This is the most curious part. For the other states, is it the same set of inputs but different
You can pass |
That's right, it's literally the same workflow file, just called with different working directories as input. The only consistent thing I can find is that the states that have "objects changed out of terraform" warnings are present in the 3 states that fail. The other states all plan just fine. Given that this shows up before the plan output, maybe it's just not a use case that's been tested and the output between the refresh output and the actual plan is causing some sort of issue? I can try to dig into it a little if I get some time as well. I think we've talked on the OpenTofu slack before? So can chat there possibly sometime tomorrow as well. |
So one thing I noticed:
which I think is matching this line: Line 214 in bd7affe
And there are also changes to outputs. But, at the same time, there are no changes to the resource that changed outside of terraform in the actual plan. I think it's failing somewhere roughly within this range: Lines 314 to 339 in bd7affe
|
Describe the bug
I'm getting an error about labels (maybe an expected one?) and then a workflow failure at the
Run # Post output.
step when planning a few states (other states seem to be planning without error).FWIW, we have a workflow that plans multiple states in parallel in different workflows using a shared workflow.
The common factor seems to be that the failing states have "objects changed outside of Terraform" warnings (see below).
Expected behavior
The state to plan without error
Screenshots
In the details bit under
Run # Post output.
, I don't see any useful outputAdditional context
I am thinking the issue may be related to there being an "objects changed outside of Terraform" warning
I also see the labels error mentioned in #432, but I think it's a red herring.
To Reproduce
Try planning a state which has objects that have changed out of band since the state was last planned (for example, a GKE cluster version change from auto-updates). You could likely trigger this by changing a computed value outside of tf.
Existing config:
Other than the steps that checkout the code, run init / lint / tflint / etc. (we run those separately from the builtin hooks for that in this action), all we've got in the config is:
The text was updated successfully, but these errors were encountered: