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

DNS Requisition import fails if location is specified

    XMLWordPrintable

    Details

      Description

      I am unable to create a DNS-based <requisition-def> using the generic requisition handler if the requisition URI contains a location.

       

      Example:

      <requisition-def import-name="dns.test" import-url-resource="requisition://dns?host=dns.remote;zone=remote.example.com;foreignSource=remote.fooswitches;location=remote;expression=^foo.*">
          <cron-schedule>0 0 0 * * ? *</cron-schedule>
      </requisition-def>
      

      This results in the following error logged in provisiond.log:

      2019-04-12 16:38:02,962 ERROR [provisiond_Worker-1] o.o.n.p.s.Provisioner: Exception importing requisition://dns?host=dns.remote;zone=remote.example.com;foreignSource=remote.fooswitches;location=remote;expression=^foo.* using rescanExisting=true
      org.opennms.netmgt.provision.service.ModelImportException: Import failed for resource URL [requisition://dns?host=dns.remote;zone=remote.example.com;foreignSource=remote.fooswitches;location=remote;expression=^foo.*]
              at org.opennms.netmgt.provision.service.Provisioner.importModelFromResource(Provisioner.java:436) ~[opennms-provisiond-23.0.3.jar:?]
              at org.opennms.netmgt.provision.service.Provisioner.doImport(Provisioner.java:524) [opennms-provisiond-23.0.3.jar:?]
              at org.opennms.netmgt.provision.service.ImportJob.execute(ImportJob.java:60) [opennms-provisiond-23.0.3.jar:?]
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.3.jar:?]
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.2.3.jar:?]
      Caused by: org.opennms.core.xml.MarshallingResourceFailureException: Failed to perform IO while getting a configuration resource from spring: java.io.IOException: java.util.concurrent.ExecutionException:
      org.opennms.core.rpc.api.RemoteExecutionException: java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: org/eclipse/persistence/internal/jaxb/WrappedValue
      

      If I remove the location=remote, then the import succeeds. Location works for other provisiond import handlers like VMWare, but not for DNS.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                j-white Jesse White
                Reporter:
                justin.wood Justin Wood
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: