Deleting an interface does not delete corresponding alarms

Description

Scenario:

An interface is removed from a node. It then shows up as down in OpenNMS. An admin user deletes the interface from the node via the webUI.

Any corresponding alarms tied to that interface (such as "interface down") will remain. They should be removed when the interface is deleted.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger January 22, 2015 at 2:54 PM

The alarms table in the database doesn't have a foreign key reference to the ipinterface table because it has the legacy-style nodeid/ipaddr/serviceid tuple as a composite foreign key. Therefore it is difficult to make a delete on ipinterface or ifservices cascade into alarms.

We'll need to update the alarm model to make this work.

Duplicate

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created September 3, 2014 at 10:15 AM
Updated December 15, 2016 at 10:19 AM
Resolved December 15, 2016 at 10:19 AM