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

Uncatched exception when importing a VMware virtual machine without an IP interface

    XMLWordPrintable

Details

    • Horizon 2021 - Dec 1-15
    • Backlog

    Description

      When you import a node in from vCenter provisiond throws an exception which should be logged with a proper error message. It would be helpful for an administrator to know what, what was the requisition and a human readable node label. The reason we can't set a primary interface, is that the VM doesn't have an IP interface at all. This happens especially when you have vSphere cluster services running which are VM's without IP interfaces. An administrator can use custom attributes to filter certain VMs from import and would be required in this case.

      2021-11-25 13:26:18,900 WARN [pool-20-thread-1] o.o.n.p.SimpleQueuedProvisioningAdapter: Exception thrown during adapter queuing, rescheduling: Can't find primary interface for nodeId: 2
      org.opennms.netmgt.provision.ProvisioningAdapterException: Can't find primary interface for nodeId: 2
       at org.opennms.netmgt.provision.SnmpMetadataProvisioningAdapter.queryNode(SnmpMetadataProvisioningAdapter.java:115) ~[opennms-snmp-metadata-provisioning-adapter-29.0.1.jar:?]
       at org.opennms.netmgt.provision.SnmpMetadataProvisioningAdapter.doAddNode(SnmpMetadataProvisioningAdapter.java:95) ~[opennms-snmp-metadata-provisioning-adapter-29.0.1.jar:?]
       at org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter$1.doInTransaction(SimplerQueuedProvisioningAdapter.java:119) ~[opennms-geoip-provisioning-adapter-29.0.1.jar:?]
       at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[org.apache.servicemix.bundles.spring-tx-4.2.9.RELEASE_1.jar:?]
       at org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter.processPendingOperationForNode(SimplerQueuedProvisioningAdapter.java:115) ~[opennms-geoip-provisioning-adapter-29.0.1.jar:?]
       at org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter$AdapterOperation.run(SimpleQueuedProvisioningAdapter.java:423) [opennms-geoip-provisioning-adapter-29.0.1.jar:?]
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
       at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
       at java.lang.Thread.run(Thread.java:834) [?:?]
      2021-11-25 13:26:19,232 WARN [pool-20-thread-1] o.o.n.p.SimpleQueuedProvisioningAdapter: Exception thrown during adapter queuing, rescheduling: Can't find primary interface for nodeId: 2
      org.opennms.netmgt.provision.ProvisioningAdapterException: Can't find primary interface for nodeId: 2
       at org.opennms.netmgt.provision.SnmpMetadataProvisioningAdapter.queryNode(SnmpMetadataProvisioningAdapter.java:115) ~[opennms-snmp-metadata-provisioning-adapter-29.0.1.jar:?]
       at org.opennms.netmgt.provision.SnmpMetadataProvisioningAdapter.doUpdateNode(SnmpMetadataProvisioningAdapter.java:101) ~[opennms-snmp-metadata-provisioning-adapter-29.0.1.jar:?]
       at org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter$2.doInTransaction(SimplerQueuedProvisioningAdapter.java:129) ~[opennms-geoip-provisioning-adapter-29.0.1.jar:?]
       at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[org.apache.servicemix.bundles.spring-tx-4.2.9.RELEASE_1.jar:?]
       at org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter.processPendingOperationForNode(SimplerQueuedProvisioningAdapter.java:125) ~[opennms-geoip-provisioning-adapter-29.0.1.jar:?]
       at org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter$AdapterOperation.run(SimpleQueuedProvisioningAdapter.java:423) [opennms-geoip-provisioning-adapter-29.0.1.jar:?]
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
       at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
       at java.lang.Thread.run(Thread.java:834) [?:?]
      

      Attachments

        Issue Links

          Activity

            People

              cpape Christian Pape
              indigo Ronny Trommer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: