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

VMware datacollection failed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 27.0.0
    • Fix Version/s: 27.0.1
    • Component/s: Collectd
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      OpenNMS version 27.0.0
      OpenJDK 11
    • Sprint:
      Horizon 2020 - Oct 28-Nov 11
    • HB Backlog Status:
      Backlog CM

      Description

      new install of OpenNMS version 27.
      VMware-Virtual-Machine and other Vmware datacollections fails with:

      2020-11-04 11:53:07,186 ERROR [Collectd-Thread-3-of-150] o.o.n.c.CollectableService: An undeclared throwable was caught during data collection for interface 1/x.x.x.x/VMware-VirtualMachine
      org.opennms.netmgt.collection.api.CollectionException: An undeclared throwable was caught during data collection for interface 1/x.x.x.x/VMware-VirtualMachine
              at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:458) ~[opennms-services-27.0.0.jar:?]
              at org.opennms.netmgt.collectd.CollectableService.doRun(CollectableService.java:355) ~[opennms-services-27.0.0.jar:?]
              at org.opennms.netmgt.collectd.CollectableService.lambda$run$0(CollectableService.java:329) ~[opennms-services-27.0.0.jar:?]
              at org.opennms.core.logging.Logging.withPrefix(Logging.java:71) [org.opennms.core.logging-27.0.0.jar:?]
              at org.opennms.netmgt.collectd.CollectableService.run(CollectableService.java:322) [opennms-services-27.0.0.jar:?]
              at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:179) [org.opennms.core.daemon-27.0.0.jar:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
              at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124) [opennms-util-27.0.0.jar:?]
              at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.opennms.netmgt.model.OnmsNode.metaData, no session or session was closed
              at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383) ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
              at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375) ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
              at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:368) ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
              at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111) ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
              at org.hibernate.collection.PersistentBag.iterator(PersistentBag.java:272) ~[hibernate-core-3.6.10.Final.jar:3.6.10.Final]
              at java.util.Spliterators$IteratorSpliterator.estimateSize(Spliterators.java:1821) ~[?:?]
              at java.util.Spliterator.getExactSizeIfKnown(Spliterator.java:408) ~[?:?]
              at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:501) ~[?:?]
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488) ~[?:?]
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
              at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150) ~[?:?]
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
              at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543) ~[?:?]
              at org.opennms.netmgt.model.OnmsNode.findMetaDataForContextAndKey(OnmsNode.java:1023) ~[opennms-model-27.0.0.jar:?]
              at org.opennms.netmgt.provision.service.vmware.VmwareImporter.getMetaData(VmwareImporter.java:873) ~[opennms-vmware-27.0.0.jar:?]
              at org.opennms.netmgt.provision.service.vmware.VmwareImporter.getManagementServer(VmwareImporter.java:878) ~[opennms-vmware-27.0.0.jar:?]
              at org.opennms.netmgt.collectd.VmwareCollector.getRuntimeAttributes(VmwareCollector.java:150) ~[opennms-vmware-27.0.0.jar:?]
              at org.opennms.netmgt.collection.client.rpc.CollectorRequestBuilderImpl.execute(CollectorRequestBuilderImpl.java:156) ~[org.opennms.features.collection.client-rpc-27.0.0.jar:?]
              at org.opennms.netmgt.collection.core.CollectionSpecification.collect(CollectionSpecification.java:282) ~[org.opennms.features.collection.core-27.0.0.jar:?]
              at org.opennms.netmgt.collectd.CollectableService.doCollection(CollectableService.java:423) ~[opennms-services-27.0.0.jar:?]
              ... 9 more
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cpape Christian Pape
              Reporter:
              mlaercher Martin Laercher
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration