icingadb icon indicating copy to clipboard operation
icingadb copied to clipboard

Downtime on a removed object are never closed.

Open w1ll-i-code opened this issue 9 months ago • 12 comments

Describe the bug

If a object with a Downtime gets disabled (even just temporary) the end of the associated Downtime is never written out to the IDO / IcingaDB.

To Reproduce

  1. Create a host in the director and deploy it.
  2. Create a downtime on the host
  3. Use the director to roll back to an older version 4.Redeploy the new version

Expected behavior

I would expect the Downtime to be terminated once the object is deactivated (The actual_end_time set to the current time). But since the downtime is dropped without ever setting this field, the object looks in the reports as if it where in a constant downtime. which does not correspond to the internal state of icinga2.

Screenshots

image

w1ll-i-code avatar Jan 15 '25 16:01 w1ll-i-code