-
Notifications
You must be signed in to change notification settings - Fork 24
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
updating recipient ids in honeycombio_trigger doesn't update recipient ids #267
Comments
A quick attempt to add an acceptance test for changing the recipient ids of a `honeycombio_trigger` to reproduce honeycombio#267. Since I don't have a fully clean slate to work with (recipients and other global objects are shared in my org's Honeycomb API access), I can't be sure if this failure is accidental or demonstrates the problem in honeycombio#267. It currently fails on my machine in a special environment and dataset just for it with: ``` $ TF_ACC=1 go test -v -run=TestAccHoneycombIOTrigger_changingRecipientID ./... ? github.com/honeycombio/terraform-provider-honeycombio [no test files] testing: warning: no tests to run PASS ok github.com/honeycombio/terraform-provider-honeycombio/client (cached) [no tests to run] ? github.com/honeycombio/terraform-provider-honeycombio/client/internal/httputil [no test files] === RUN TestAccHoneycombIOTrigger_changingRecipientID resource_trigger_test.go:213: Step 2/2 error: Check failed: honeycombio_trigger.test: Attribute 'recipient.0.id' expected "xmbNbyhSY91", got "rX2sUPHwbjn" testing_new.go:84: Error running post-test destroy, there may be dangling resources: exit status 1 Error: 409 Conflict: Recipient rX2sUPHwbjn is being used by a trigger or burn alert and cannot be deleted --- FAIL: TestAccHoneycombIOTrigger_changingRecipientID (4.38s) FAIL FAIL github.com/honeycombio/terraform-provider-honeycombio/honeycombio 4.703s ? github.com/honeycombio/terraform-provider-honeycombio/honeycombio/internal/hashcode [no test files] ? github.com/honeycombio/terraform-provider-honeycombio/honeycombio/internal/verify [no test files] FAIL ```
I've attempted to write an acceptance test in a branch on my fork: jeff.hodges/debug-trigger-recipient-update Since recipients are global objects across environments and I have only access to my org's set of environments, I wasn't able to get full isolation like y'all could. But with its own environment and dataset set, I was able to get a failure that might be a reproduction of this issue. I'm open, though, to see it fixed up by y'all or take feedback to make it correct.
|
This is also happening on Calling |
Any updates on this one? We're still seeing it in production when triggers need to go to a new Slack channel or pager duty or whatever |
Also, I seem to be wrong about |
@jmhodges-color sorry for the delay here! We'll pick this up today and see what we can sort out. |
Hitting this again on dozens of triggers I'm having to fix manually |
Just hit this again for another 6 triggers (and it's not even my usual job to manage these) |
Any news on this one? |
@jmhodges-color work is underway (#305) to migrate |
Any news? |
The trigger-recipient-fixes branch has a working solution but only for Terraform Core (CLI) 1.4.x. Bit of a gut bunch as I was going to get it merged. Working on a solve for Terraform <1.4 as requiring everyone to update doesn't really feel like a path forward unless we're ready to cut version 1.0 of the provider |
This completes the move of the `honeycombio_trigger` resource to the Terraform Plugin Framework (started in #306). In order to support versions of Terraform core older than 1.4.0 (which, is rather "fresh") there is a bit of logic to handle `Null` or `Unknown` values of these awkwardly-shaped notification recipients. This also 'bumps' the version of Terraform core used in CI to 1.0.11 (from the old 0.14.x series). - Closes #303, #267, #200
Fix released in v0.15.0 |
Versions
0.13.0
Steps to reproduce
channel
values for Slack channels in your own Slack instance, using ahoneycombio_dataset
that has traces with child spans in it so thetrace.parent_id
column exists, and updatingtime_range
to a working value):terraform plan
terraform apply
recipient
block to:terraform plan
and notice that says:terraform apply
and see it finishes successfullyterraform plan
and see it still says that therecipient
id
needs to be changed in the exact same way:Additional context
I believe a colleague worked around this problem previously by setting
type
andtarget
in these recipient blocks as discussed in the comments of #262. That workaround possibly opened us up to #262 or some of the difficulties in #262 are another expression of this bugThe text was updated successfully, but these errors were encountered: