6 Replies Latest reply on Aug 14, 2019 8:36 AM by asajm

    export import vm

    orian Enthusiast

      Hi,

       

      I have a workflow which exports from one vCenter to vco appliance and imports from vco to another vCenter.

      Few weeks ago I upgrade the first vCenter and his esxi hosts to 6.7.

       

      The export step works fine but the import fails with the following error:

      (de.sva.vco.plugin.ovatransfer/importVM) Error in (Dynamic Script Module name : importVM#158) Unexpected error detected. Please review vCO logfile

       

      I use OvaTransfer plug-in version: 3.2.2.500

      VRa 7.5 HF7

       

      any idea?

        • 1. Re: export import vm
          asajm Enthusiast
          vExpert

          Hi orian

          If you can please share more details of vCO logfile we can have a look at what is your problem.

          • 2. Re: export import vm
            orian Enthusiast

            form log: /var/log/vco/app-server/server.log:

             

            2019-08-12 16:31:55.162+0300 [activityStatisticExecutor-1] INFO  {} [ProfilerManager] profiler 4e7f6bf7-059f-4b4e-bc8f-bec8c7cae6f3 disposed

            2019-08-12 16:31:55.169+0300 [WorkflowExecutorPool-Thread-102] WARN  {} [ProfilerManagerHolder] Profiler not found for token id '4e7f6bf7-059f-4b4e-bc8f-bec8c7cae6f3'. Token resume?

            2019-08-12 16:31:55.169+0300 [WorkflowExecutorPool-Thread-102] WARN  {} [ProfilerManagerHolder] Profiler not found for token id '4e7f6bf7-059f-4b4e-bc8f-bec8c7cae6f3'. Token resume?

            2019-08-12 16:32:46.886+0300 [http-nio-127.0.0.1-8280-exec-2] INFO  {} [WorkflowEngine] Executing workflow 'Import Template To vCenter'

            2019-08-12 16:32:47.903+0300 [WorkflowExecutorPool-Thread-103] INFO  {} [ProfilerManager] Created new profiler c4c6cfc3-bc05-4507-acbf-2e521f62569f

            2019-08-12 16:32:47.906+0300 [WorkflowExecutorPool-Thread-103] INFO  {} [WorkflowHandler] ************* Workflow 'Import Template To vCenter' (id: 06dd3f3c-017e-41ff-b07f-4445f54ae7e2) started. Execution id: c4c6cfc3-bc05-4507-acbf-2e521f62569f *************

            2019-08-12 16:32:47.933+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [WorkflowHandler] Starting workflow 'Import Template To vCenter' (c4c6cfc3-bc05-4507-acbf-2e521f62569f)...

            2019-08-12 16:32:47.945+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [WorkflowHandler] Can find currentItem for tokenId[c4c6cfc3-bc05-4507-acbf-2e521f62569f,__item-undefined__,__item-undefined__]

            2019-08-12 16:32:47.950+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item2

            2019-08-12 16:32:47.962+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter (8/12/19 16:32:46)] TEMPLATE_NAME

            2019-08-12 16:32:47.974+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item3

            2019-08-12 16:32:47.994+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [DynamicFunction] End of action 'com.vmware.library.vc.datastore/getAllVMsOfDatastore', completed for: 8ms

            2019-08-12 16:32:47.998+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter (8/12/19 16:32:46)] The vm in source vCenter is: DynamicWrapper (Instance) : [VcVirtualMachine]-[class com.vmware.o11n.plugin.vsphere_gen.VirtualMachine_Wrapper] -- VALUE : Stub: moRef = (ManagedObjectReference: type = VirtualMachine, value = vm-67395, serverGuid = null), binding = https://VCENTER_NAME:443/sdk

            2019-08-12 16:32:48.002+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter (8/12/19 16:32:46)] find template to delete in destination: null

            2019-08-12 16:32:48.009+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item6

            2019-08-12 16:32:48.023+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item10

            2019-08-12 16:32:48.034+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [WorkflowHandler] Can find currentItem for tokenId[c4c6cfc3-bc05-4507-acbf-2e521f62569f,__item-undefined__,/item10/__item-undefined__]

            2019-08-12 16:32:48.054+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item10/item1

            2019-08-12 16:32:48.087+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Loading OVF content...

            2019-08-12 16:32:48.090+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Loading OVF content... done.

            2019-08-12 16:32:48.091+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Preparing specs and all vdisks for upload...

            2019-08-12 16:32:48.130+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Preparing specs and all vdisks for upload... done.

            2019-08-12 16:32:48.133+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Initializing NFC connection and creating virtual machine...

            2019-08-12 16:33:37.380+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Initializing NFC connection and creating virtual machine... done.

            2019-08-12 16:33:37.383+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Matching all NfsLeaseDevices to OVF specs...

            2019-08-12 16:33:37.387+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Queueing device: /COPY_TO_VM/VirtualLsiLogicSASController0:0 for https://ESX_NAME/nfc/521975db-bbf0-4bc2-550d-cf301d4a0257/disk-0.vmdk

            2019-08-12 16:33:37.388+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Starting vDisk upload...

            2019-08-12 16:33:37.392+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] Uploading: /COPY_TO_VM/nvram to null

            2019-08-12 16:33:37.393+0300 [Thread-233] ERROR {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [ImportWorker] Unable to import file COPY_FROM_VM-disk2.vmdk to null

            java.lang.NullPointerException

                    at de.sva.vco.plugin.ovatransfer.core.ImportWorker.run(ImportWorker.java:37)

            2019-08-12 16:33:37.899+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [DynamicFunction] End of action 'de.sva.vco.plugin.ovatransfer/importVM', completed for: 49818ms

            2019-08-12 16:33:37.901+0300 [WorkflowExecutorPool-Thread-103] ERROR {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Import a Virtual Machine from OVF/OVA/{de.sva.vco.plugin.ovatransfer/importVM} (8/12/19 16:32:46)] (de.sva.vco.plugin.ovatransfer/importVM) Error in (Dynamic Script Module name : importVM#158) Unexpected error detected. Please review vCO logfile

            2019-08-12 16:33:37.901+0300 [WorkflowExecutorPool-Thread-103] WARN  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [WorkflowItemTaskRunner] Script execution error on workflow : Import Template To vCenter / 'importVM'(item1) : Unexpected error detected. Please review vCO logfile (Dynamic Script Module name : importVM#158)

            2019-08-12 16:33:37.911+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item11

            2019-08-12 16:33:37.916+0300 [WorkflowExecutorPool-Thread-103] WARN  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter (8/12/19 16:32:46)] ********************************************

            2019-08-12 16:33:37.918+0300 [WorkflowExecutorPool-Thread-103] WARN  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter (8/12/19 16:32:46)] FAIL TO IMPORT TEMPLATE TO: NEW VCENTER

            2019-08-12 16:33:37.919+0300 [WorkflowExecutorPool-Thread-103] WARN  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter (8/12/19 16:32:46)] ********************************************

            2019-08-12 16:33:37.929+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item13

            2019-08-12 16:33:37.941+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item12

            2019-08-12 16:33:37.945+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [WorkflowHandler] Can find currentItem for tokenId[c4c6cfc3-bc05-4507-acbf-2e521f62569f,__item-undefined__,/item12/__item-undefined__]

            2019-08-12 16:33:37.954+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item12/item0

            2019-08-12 16:33:37.960+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] [Import Template To vCenter/Send notification to mailing list (8/12/19 16:32:46)] sending mail to host: mailrelayobe.local.tase.co.il:25 with user:null, from:user@from, to:user@to

            2019-08-12 16:33:38.077+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item12/item1

            2019-08-12 16:33:38.086+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [SCRIPTING_LOG] __item_stack:/item1

            2019-08-12 16:33:38.093+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [WorkflowHandler] End of workflow 'Import Template To vCenter' (c4c6cfc3-bc05-4507-acbf-2e521f62569f), state: completed

            2019-08-12 16:33:38.094+0300 [WorkflowExecutorPool-Thread-103] INFO  {|__SYSTEM|USER_LOGIN:Import Template To vCenter:06dd3f3c-017e-41ff-b07f-4445f54ae7e2:token=c4c6cfc3-bc05-4507-acbf-2e521f62569f} [WorkflowHandler]  ********  Workflow 'Import Template To vCenter' (id: 06dd3f3c-017e-41ff-b07f-4445f54ae7e2) has finished with status [ completed ]. Execution id: c4c6cfc3-bc05-4507-acbf-2e521f62569f  **********

            2019-08-12 16:33:38.096+0300 [activityStatisticExecutor-1] INFO  {} [ProfilerManager] profiler c4c6cfc3-bc05-4507-acbf-2e521f62569f disposed

            2019-08-12 16:33:38.102+0300 [WorkflowExecutorPool-Thread-103] WARN  {} [ProfilerManagerHolder] Profiler not found for token id 'c4c6cfc3-bc05-4507-acbf-2e521f62569f'. Token resume?

            2019-08-12 16:33:38.103+0300 [WorkflowExecutorPool-Thread-103] WARN  {} [ProfilerManagerHolder] Profiler not found for token id 'c4c6cfc3-bc05-4507-acbf-2e521f62569f'. Token resume?

            • 4. Re: export import vm
              iiliev Champion
              VMware EmployeesCommunity Warriors

              OK, here is an excerpt from the provided log:

               

              Starting vDisk upload...
              Uploading: /COPY_TO_VM/nvram to null
              Unable to import file COPY_FROM_VM-disk2.vmdk to null
              java.lang.NullPointerException
                      at de.sva.vco.plugin.ovatransfer.core.ImportWorker.run(ImportWorker.java:37)
              

               

              So it seems that the import fails because the import destination is null / not set, which causes NullPointerException to be thrown in the Java code of the plug-in, followed by failure of the workflow.

               

              Unfortunately, it is not possible to troubleshoot this further without having access to plug-in content (workflows/actions) and plug-in source code. This plug-in is not part of standard vRO plug-ins, so you need to contact plug-in authors.

              • 5. Re: export import vm
                orian Enthusiast

                If I export manually from vCenter I have 4 files:

                vm.mf

                vm.ovf

                vm-1.vmdk

                vm-2.nvram

                 

                If I export with OvaTransfer plugin I have other 4 files:

                vm.mf

                vm.ovf

                vm1.vmdk

                vm2.vmdk

                 

                what can I change in order to import the vm in 6.5 environment?

                • 6. Re: export import vm
                  asajm Enthusiast
                  vExpert

                  This can be done by doing the following:

                   

                  - Click on the ESXi host summary tab.

                  - Right-click on datastore -> Browse Datastore

                  - Use the icon with the up arrow in front of some disks (Upload files to this datastore)

                  - Upload the folder or files that you require.

                  - Create a new (or use an existing) VM and use the VMDK files you have uploaded.