DNS Adapter on Delete Node does not delete DNS record

Description

2017-03-14 17:02:35,489 DEBUG [ProvisioningAdapterManager:EventListener-Thread] o.o.n.e.EventIpcManagerDefaultImpl: run: calling onEvent on ProvisioningAdapterManager:EventListener for event uei.opennms.org/nodes/nodeDeleted dbid 977 with time 2017-03-14T17:02:35.370+0100
2017-03-14 17:02:35,489 INFO [ProvisioningAdapterManager:EventListener-Thread] o.o.n.p.s.ProvisioningAdapterManager: handleNodeDeletedEvent: Calling adapter:3 for node: DNS Provisioning Adapter
2017-03-14 17:02:35,491 DEBUG [Provisiond:EventListener-Thread] o.o.n.e.EventIpcManagerDefaultImpl: run: calling onEvent on Provisiond:EventListener for event uei.opennms.org/nodes/nodeDeleted dbid 977 with time 2017-03-14T17:02:35.370+0100
2017-03-14 17:04:53,093 INFO [pool-8-thread-1] o.o.n.p.DnsProvisioningAdapter: processPendingOperationForNode: Handling Operation: Operation: Update on Node: 3
2017-03-14 17:04:53,093 DEBUG [pool-8-thread-1] o.o.n.p.DnsProvisioningAdapter: doUpdate: operation: UPDATE
2017-03-14 17:04:53,094 DEBUG [pool-8-thread-1] o.o.n.p.DnsRecord: Constructor: set level: 3
2017-03-14 17:04:53,095 ERROR [pool-8-thread-1] o.o.n.p.DnsProvisioningAdapter: addNode: Error handling node added event.
java.lang.NullPointerException
at org.opennms.netmgt.provision.DnsRecord.<init>(DnsRecord.java:49) ~[opennms-dns-provisioning-adapter-17.0.1-SNAPSHOT.jar:?]
at org.opennms.netmgt.provision.DnsProvisioningAdapter.doUpdate(DnsProvisioningAdapter.java:223) [opennms-dns-provisioning-adapter-17.0.1-SNAPSHOT.jar:?]
at org.opennms.netmgt.provision.DnsProvisioningAdapter.access$100(DnsProvisioningAdapter.java:64) [opennms-dns-provisioning-adapter-17.0.1-SNAPSHOT.jar:?]
at org.opennms.netmgt.provision.DnsProvisioningAdapter$2.doInTransactionWithoutResult(DnsProvisioningAdapter.java:201) [opennms-dns-provisioning-adapter-17.0.1-SNAPSHOT.jar:?]
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34) [org.apache.servicemix.bundles.spring-tx-4.0.5.RELEASE_1.jar:?]
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) [org.apache.servicemix.bundles.spring-tx-4.0.5.RELEASE_1.jar:?]
at org.opennms.netmgt.provision.DnsProvisioningAdapter.processPendingOperationForNode(DnsProvisioningAdapter.java:198) [opennms-dns-provisioning-adapter-17.0.1-SNAPSHOT.jar:?]
at org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter$AdapterOperation.run(SimpleQueuedProvisioningAdapter.java:423) [opennms-dns-provisioning-adapter-17.0.1-SNAPSHOT.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_121]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
2017-03-14 17:04:53,095 DEBUG [pool-8-thread-1] o.o.n.e.EventIpcManagerDefaultImpl: sending: org.opennms.netmgt.xml.event.Log@19ae9ca6[header=<null>,events=org.opennms.netmgt.xml.event.Events@6fe42b22[event=[org.opennms.netmgt.xml.event.Event@757a2417[uuid=<null>,dbid=<null>,dist-poller=<null>,creation-time=Tue Mar 14 17:04:53 CET 2017,master-station=<null>,mask=<null>,uei=uei.opennms.org/provisioner/provisioningAdapterFailed,source=Provisioner,nodeid=3,time=Tue Mar 14 17:04:53 CET 2017,host=<null>,interface=<null>,snmphost=<null>,service=<null>,snmp=<null>,parms=[org.opennms.netmgt.xml.event.Parm@1dae

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Antonio Russo April 7, 2017 at 7:36 AM

This has been fixed when enhancing dns adapters...
see https://opennms.atlassian.net/browse/NMS-9222#icft=NMS-9222 set dns level for dns provisiong adapter

Done

Details

Assignee

Reporter

Priority

PagerDuty

Created March 14, 2017 at 12:13 PM
Updated April 7, 2017 at 7:36 AM
Resolved April 7, 2017 at 7:36 AM

Flag notifications