terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

[ISSUE] Removing webhook_notifications block in databricks_job errors out

Open vadivelselvaraj opened this issue 2 years ago • 8 comments

When we remove webhook_notifications block from an existing databricks job, we see Error: cannot update job: Webhook with id '' was not found.

Expected Behavior

The webhook should get removed without throwing an error

Versions

Terraform version: 1.3.5 Databricks TF provider version: 1.9.2

vadivelselvaraj avatar Feb 08 '23 16:02 vadivelselvaraj

Can you add a debug log as described in the troubleshooting guide

alexott avatar Feb 09 '23 05:02 alexott

We use terraform cloud to run our TF plan/apply. The raw plan/apply logs don't provide much info. Attaching the relevant screenshots. Hope that helps.

TF plan

webhook_issue_tf_plan_apply_screenshots

vadivelselvaraj avatar Feb 14 '23 16:02 vadivelselvaraj

Hello,

I also have this error. Is there any news on this?

Francisco Vieira

fdvieira avatar Jun 28 '23 09:06 fdvieira

Hi, @fdvieira -- please add the debug logs for the error you encounter. Thanks!

iandexter avatar Jun 28 '23 10:06 iandexter

Hello @iandexter,

It's the exact issue described in this issue: https://github.com/databricks/terraform-provider-databricks/issues/2123.

Still need my debug logs?

Francisco

fdvieira avatar Jun 28 '23 10:06 fdvieira

I can reproduce this via the UI with the following steps:

  1. create a notification destination (in my case a slack webhook)
  2. create a new job
  3. add the notification to at the task level (notification on Failure)
  4. delete the notification destination
  5. attempt to add a notification at the job level and you will receive a message similar to the attached image. image I've come across two ways to solve this (there may be more);
  6. delete the job and recreate it (not a big deal if you have it terraformed)
  7. add an existing notification back to the task itself

mvilts avatar Jan 11 '24 21:01 mvilts

Due to this issue I cannot remove webhook notifications settings from tasks or job through asset bundle...

yb-yu avatar Feb 15 '24 07:02 yb-yu

Repro in #3309. Discussed the issue with @mgyucht.

pietern avatar Feb 28 '24 10:02 pietern