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

VMware provisioning not working anymore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 20.0.0
    • Fix Version/s: 20.0.1
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Ubuntu 16.04 LTS, vSphere v5.5, vSphere v6.5

      Description

      It seems that VMware provisioning is broken in 20.0.0. The log shows the following exceptions (for two different vSphere environments):

      2017-06-22 09:03:00,002 INFO  [provisiond_Worker-1] o.q.c.JobRunShell: Job Provisiond.WI-vCenter threw a JobExecutionException: 
      org.quartz.JobExecutionException: java.lang.ClassCastException: Identified object is not a String.
      	at org.opennms.netmgt.provision.service.ImportJob.execute(ImportJob.java:63) ~[opennms-provisiond-20.0.0.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: java.lang.ClassCastException: Identified object is not a String.
      	at org.quartz.utils.StringKeyDirtyFlagMap.getString(StringKeyDirtyFlagMap.java:378) ~[quartz-2.2.3.jar:?]
      	at org.opennms.netmgt.provision.service.ImportJob.execute(ImportJob.java:57) ~[opennms-provisiond-20.0.0.jar:?]
      	... 2 more
      2017-06-22 09:03:00,002 INFO  [provisiond_Worker-2] o.q.c.JobRunShell: Job Provisiond.WI-vCenter-Backup threw a JobExecutionException: 
      org.quartz.JobExecutionException: java.lang.ClassCastException: Identified object is not a String.
      	at org.opennms.netmgt.provision.service.ImportJob.execute(ImportJob.java:63) ~[opennms-provisiond-20.0.0.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: java.lang.ClassCastException: Identified object is not a String.
      	at org.quartz.utils.StringKeyDirtyFlagMap.getString(StringKeyDirtyFlagMap.java:378) ~[quartz-2.2.3.jar:?]
      	at org.opennms.netmgt.provision.service.ImportJob.execute(ImportJob.java:57) ~[opennms-provisiond-20.0.0.jar:?]
      	... 2 more
      

      Here my provisiond-configuration.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <provisiond-configuration 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         
        foreign-source-dir="/usr/share/opennms/etc/foreign-sources" 
        requistion-dir="/usr/share/opennms/etc/imports"
         
        importThreads="8" scanThreads="10" rescanThreads="10" writeThreads="8" >
        
        <requisition-def import-name="WI-vCenter" import-url-resource="vmware://192.168.31.130/WI-vCenter?importIPv4Only=true">
          <cron-schedule>0 0 9 * * ? *</cron-schedule>
        </requisition-def>
      
        <requisition-def import-name="WI-vCenter-Backup" import-url-resource="vmware://192.168.31.200/WI-vCenter-Backup?importIPv4Only=true">
          <cron-schedule>0 0 9 * * ? *</cron-schedule>
        </requisition-def>
      
      </provisiond-configuration>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ranger Benjamin Reed
                Reporter:
                cpape Christian Pape
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: