Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8046

noSuchInstance causing problems during provision scan

    Details

    • Sprint:
      Horizon - July 26th

      Description

      A user on the discuss list has a GPON (gigabit passive optical network) device that is returning an SNMP noSuchInstance error for some OIDs during a provisioning scan and this appears to be causing exceptions in provisiond that prevent complete scanning.

      We should be catching this exception and continuing on to the next OID in the walk which is what snmpwalk appears to do.

      2015-12-08 13:08:33,926 WARN  [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.s.TableTracker: Failed to process response java.lang.IllegalArgumentException: cannot convert noSuchInstance to a HexString
              at org.opennms.netmgt.snmp.snmp4j.Snmp4JValue.toHexString(Snmp4JValue.java:258) ~[org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.opennms.netmgt.provision.service.PhysInterfaceTableTracker$PhysicalInterfaceRow.getPhysAddr(PhysInterfaceTableTracker.java:194)~[opennms-provisiond-16.0.4.jar:?]
              at org.opennms.netmgt.provision.service.PhysInterfaceTableTracker$PhysicalInterfaceRow.createInterfaceFromRow(PhysInterfaceTableTracker.java:224)~[opennms-provisiond-16.0.4.jar:?]
              at org.opennms.netmgt.provision.service.NodeScan$AgentScan$3.processPhysicalInterfaceRow(NodeScan.java:579) ~[opennms-provisiond-16.0.4.jar:?]
              at org.opennms.netmgt.provision.service.PhysInterfaceTableTracker.rowCompleted(PhysInterfaceTableTracker.java:256)~[opennms-provisiond-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.SnmpTableResult.handleCompleteRows(SnmpTableResult.java:99) ~[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.SnmpTableResult.storeResult(SnmpTableResult.java:75) ~[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.TableTracker.storeResult(TableTracker.java:106)~[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.CollectionTracker.storeResult(CollectionTracker.java:77) ~[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.ColumnTracker$1.processResponse(ColumnTracker.java:100) ~[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.TableTracker$CombinedColumnResponseProcessor.processResponse(TableTracker.java:170)[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.AggregateTracker$ChildTrackerResponseProcessor.processResponse(AggregateTracker.java:165)[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.SnmpWalker.processResponse(SnmpWalker.java:202)[org.opennms.core.snmp.api-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker.access$700(Snmp4JWalker.java:48) [org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker$Snmp4JResponseListener.processResponse(Snmp4JWalker.java:151)[org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.opennms.netmgt.snmp.snmp4j.Snmp4JWalker$Snmp4JResponseListener.onResponse(Snmp4JWalker.java:180)[org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.snmp4j.Snmp.processPdu(Snmp.java:1203)[org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.snmp4j.MessageDispatcherImpl.fireProcessPdu(MessageDispatcherImpl.java:675) [org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.snmp4j.MessageDispatcherImpl.dispatchMessage(MessageDispatcherImpl.java:302) [org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:373) [org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:333) [org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.snmp4j.transport.AbstractTransportMapping.fireProcessMessage(AbstractTransportMapping.java:76)[org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(DefaultUdpTransportMapping.java:414)[org.opennms.core.snmp.implementations.snmp4j-16.0.4.jar:?]
              at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
      

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              seth Seth Leger
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: