-
Notifications
You must be signed in to change notification settings - Fork 138
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
opsgenie_integration_action conditions order is not stable causing "in-place" updates though nothing changes #430
Comments
+1 |
I have the same issue. Have opened a support ticket with Atlassian regarding this. |
Opsgenie has opened this issue based on my support request: Please vote and follow over there if you're impacted. |
Atlassian has marked OPSGENIE-2160 as resolved. I assume this means the fix will be coming in a release soon? |
@mcbrineellis I think the issue should be reopened. The guy who closed it merged this PR the same day : #440 It deployed as version 0.6.36 of the provider which I tested and still has the issue. I can't tell how the code change could have fixed the issue either. |
Yeah I had the same thought. I'll open another support ticket to ask more details. Kind of irritating that Atlassian isn't responding to issues reported here... |
Hi @mcbrineellis, there seems to be a misunderstanding, the ticket was closed by mistake assuming it was fixed since a ticket with a similar issue was closed. I'm taking a look at this ticket, apologies! |
Hi @granter1 , @stonkie and @mcbrineellis |
Nice!!! Just did a quick test and it looks good to me. Finally my terraform plans will actually show my changes!
Great work @koushik-swaminathan I appreciate that :) |
@mcbrineellis @koushik-swaminathan - the error is still occurring for me on opsgenie/opsgenie v0.6.37. What am I missing here? I've tried completely destroying the integrations and recreating fresh, also tried the order value starting at 0 and 1. The outcome is the same each time |
Hmm, can you share an example of your integration action code? It’s working as expected for me now. |
Hi @koushik-swaminathan, @mcbrineellis, I've encountered the same issue while using version v0.6.37 of the Opsgenie provider. Below is a minimal Terraform configuration that demonstrates the problem:
I did some testing and noticed that the issue only arises when more than 10 actions are added hence it seems that the problem is related to how the provider paginates results from the GET /actions/ and compares them with the Terraform state; but this is just a guess. To avoid getting into the permanent drift in the above code just remove any item in the alerts list. Let me know if any additional information is needed. Thanks! |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Terraform v1.3.6
on darwin_arm64
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
opsgenie_integration_action Filter Conditions should be ordered and idempotent. Running a new plan without any changes should show no changes
Actual Behavior
When replanning without any code changes, the Conditions list order is constantly changing and updated in-place. No amount of applies or reordering fixes this
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
terraform apply
terraform plan
Important Factoids
This is the same for all integration_actions; create, close, acknowledge, ignore, add_note
References
This looks to be a similar issue as to the one raised and solved in #332
The text was updated successfully, but these errors were encountered: