Fix for NMS-6567 prevents interfaces from acquiring SNMP interface records on rescan

Description

My fix for bug is causing problems during rescans if the interface doesn't have an snmpInterface associated with it because of side effects in the setIfIndex() method. The fix needs to be reverted.

The ifIndex column has been removed in OpenNMS 17 so the fix will be obsolete in that version anyway.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger August 13, 2015 at 12:08 PM

I've added an update call to the OnmsIpInterface -> OnmsSnmpInterface relationship to the scan, the lack of which was causing the side-effect problems. Marking as fixed.

commit 1024ae3440e14f7a154a37826749f26a73999e36

Seth Leger August 13, 2015 at 11:01 AM

I don't think that the fix for needs to be reverted now, we just need to ensure that we're updating the OnmsSnmpInterface objects before we try to update fields on those objects during the scan.

Seth Leger August 13, 2015 at 10:59 AM

Here's the stack trace from the problem:

Fixed

Details

Assignee

Reporter

Components

Sprint

Affects versions

Priority

PagerDuty

Created August 12, 2015 at 5:38 PM
Updated August 19, 2015 at 10:41 AM
Resolved August 13, 2015 at 12:08 PM