6 Replies Latest reply on May 5, 2015 9:58 AM by Nitin Murkute Branched to a new discussion.

    VM creation failed in BSA

    Nitin Murkute

      Hi Friends,

       

      We are trying WIN2008R2 and WIN2012 VM provisioning using BSA but we are facing an issue as mentioned below,

       

      Does anybody faced this type is issue?

       

      Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: VM creation failed.null

      ERROR    blcoserver -   4452 BladeLogicRSCD (Not_available): (Not_available): BSA_ERROR:java.lang.NullPointerException

      04/29/15 05:59:50.400 ERROR    blcoserver -   4452 BladeLogicRSCD (BladeLogicRSCD): (Not_available): Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: java.lang.NullPointerException

      04/29/15 05:59:50.405 ERROR    blcoserver -   4452 BladeLogicRSCD (BladeLogicRSCD): (Not_available): java.lang.NullPointerException

      04/29/15 05:59:50.407 ERROR    blcoserver -   4452 BladeLogicRSCD (BladeLogicRSCD): (Not_available): Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: java.lang.NullPointerException com.bladelogic.vmware.deployer.VMwareLegacyDeployer.deploy(VMwareLegacyDeployer.java:370) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.bulkPutAttributeValues(VMwareLegacyDeployer.java:128) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.bulkPutAttributeValues(VMwareLegacyDeployer.java:39) com.bladelogic.virtualization.jpa.VirtCustomObject.bulkPutAttributeValues(VirtCustomObject.java:511) com.bladelogic.om.infra.daal.jco.GenericPlugin.notify(GenericPlugin.java:203) com.bladelogic.om.infra.daal.jco.JPAShim.bulkPutAttributeValues(JPAShim.java:713) Caused by: java.lang.NullPointerException: (no message available) com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineTemplateFinder.isDataStoreMatch(VirtualMachineTemplateFinder.java:262) com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineTemplateFinder.findMatchingTemplateMOR(VirtualMachineTemplateFinder.java:207) com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineTemplateFinder.getTemplateFromDatacenter(VirtualMachineTemplateFinder.java:97) com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineTemplateFinder.getTemplateFromDatacenter(VirtualMachineTemplateFinder.java:69) com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineOrTemplateDeployer.getVMOrTemplateMor(VirtualMachineOrTemplateDeployer.java:160) com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineOrTemplateDeployer.addAssetInternal(VirtualMachineOrTemplateDeployer.java:820) com.bladelogic.om.virtualization.vmware.deploy.AbstractDeployer.addAssetInternal(AbstractDeployer.java:233) com.bladelogic.om.virtualization.vmware.deploy.AbstractDeployer.addAsset(AbstractDeployer.java:210) com.bladelogic.om.virtualization.vmware.VMWareDeployService.addOrModify(VMWareDeployService.java:769) com.bladelogic.om.virtualization.vmware.VMWareDeployService.processAsset(VMWareDeployService.java:709) com.bladelogic.om.virtualization.vmware.VMWareDeployService.processAssets(VMWareDeployService.java:639) com.bladelogic.om.virtualization.vmware.VMWareDeployService.commit(VMWareDeployService.java:288) com.bladelogic.om.virtualization.vmware.VMWareDeployService.deploy(VMWareDeployService.java:180) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.deploy(VMwareLegacyDeployer.java:362) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.bulkPutAttributeValues(VMwareLegacyDeployer.java:128) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.bulkPutAttributeValues(VMwareLegacyDeployer.java:39) com.bladelogic.virtualization.jpa.VirtCustomObject.bulkPutAttributeValues(VirtCustomObject.java:511) com.bladelogic.om.infra.daal.jco.GenericPlugin.notify(GenericPlugin.java:203) com.bladelogic.om.infra.daal.jco.JPAShim.bulkPutAttributeValues(JPAShim.java:713)

      04/29/15 05:59:50.469 ERROR    blcoserver -   4452 BladeLogicRSCD (BladeLogicRSCD): (Not_available): Error returned from plug-in ; Plug-in: /BMC_VMware_VirtualInfrastructureManager_win64 ; Plug-in function: blAsset_PutAll ; Plug-in asset: BMC_VMware_VirtualMachineTemplate::/Templates/WIN2012_BARE ; Plug-in error code: 800 ; Plug-in error message: java.lang.NullPointerException ; Plug-in detail message: Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: java.lang.NullPointerException

      04/29/15 05:59:50.481 INFO     blcoserver -   4452 BladeLogicRSCD (Not_available): (Not_available): Completed Method: DAAL.putAll (Pid[15760], ThreadID[0])

       

      I am able to live browse the VC content from BSA after pushing CO.

      and My BSA is 8.5.01.119.

       

       

      Thanks in Advance.......

      Nitin

        • 1. Re: VM creation failed in BSA
          Raja Mohan

          hi Nitin

           

          Plug-in error code:800 is a very generic error message that gets generated when there is a failure during virtual guest creation. You will have to see the job results for VGJ -> deploy status -> commit  and look at the log messages for commit step.

           

          My guess is it is something to do with some attribute you have empty

          com.bladelogic.om.infra.daal.jco.JPAShim.bulkPutAttributeValues(JPAShim.java:713) Caused by: java.lang.NullPointerException: (no message available)

          • 2. Re: VM creation failed in BSA
            Nitin Murkute

            Hi Raja,

             

            Apologies for the late reply.

             

            Yes, it is generic error for plugin 800 issue but I am not getting which attribute is missing while VM deployment.

            Untitled.png

             

            I am attaching log for more details for commit phase.

             

            Thanks & Regards,
            Nitin

            • 3. Re: VM creation failed in BSA
              Raja Mohan

              hi Nitin, I am not familiar with a template based installation and the steps that happens. But looking at the log the error says "ab" does not exist.

               

              <aav name="VMware_Template_Deploy_Destination_VM_Name" type="String">ab</aav>

               

              Info 04/30/2015 06:59:55     COserver -  - entity: 'ab' does not exist (Time in agent's deploy log:: 04/30/2015 06:59:57)

              • 4. Re: VM creation failed in BSA
                Raja Mohan

                how are you creating this vm guest? can you review and see if all the necessary fields are filled?

                Example: Creating a VMware Virtual Guest Package - BMC Server Automation 8.5 - BMC Documentation

                • 5. Re: VM creation failed in BSA
                  Raja Mohan

                  Nitin, your deployxml seem to be missing items. Go through and validate all the required settings for template to be successful.Also I notice the template XML seems incomplete with no memory or network information.

                   

                  deployXML :

                  <BLPACKAGE>   

                  <ASSET Action="Add" ItemId="1" Name="WIN2008" Path="/Templates/WIN2008" class="BMC_VMware_VirtualMachineTemplate"/>   

                  <ASSET Action="Add" ItemId="1" Name="Deploy Configuration" Path="/Templates/WIN2008/Deploy Configuration" class="BMC_VMware_VMTemplateDeployConfiguration">     

                  <aav name="VMware_Template_Mappings" type="String">WIN2008

                  </aav>     

                  <aav name="VMware_Template_datastore" type="String">H_TFM1036_R5_N2_ID0001_CCE_100GB

                  </aav>     

                  <aav name="VMware_Datastore_Type" type="String">VMware_Datastore

                  </aav>     

                  <aav name="VMware_Template_Provisioning_Type" type="String">sameAsSource

                  </aav>     

                  <aav name="VMware_Template_SysPrep_OS_Type" type="String">Windows

                  </aav>     

                  <aav name="VMware_Destination_Asset_Internal_Name" type="String">vgpdeploykey::ClusterComputeResource::domain-c1616

                  </aav>     

                  <aav name="VMware_Template_Deploy_Destination_VM_Name" type="String">ab

                  </aav>     

                  <aav name="VMware_VGP_Source_Type" type="String">TEMPLATE

                  </aav>     

                  <aav name="VMware_Destination_Asset_Type" type="String"/>     

                  <aav name="VMware_VM_Folder_Path" type="String"/>     

                  <aav name="VMware_Guest_Operating_System" type="String">VMware_windows7Server64Guest

                  </aav>     

                  <aav name="VMware_Template_Deploy_RollBackOnFailure" type="Boolean">true

                  </aav>     

                  <aav name="VMware_Power_Status" type="String">Started

                  </aav>   

                  </ASSET>   

                  <ASSET Action="Add" ItemId="1" Name="CPU" Path="/Virtual Machines/ab/Hardware/CPU" class="BMC_VMware_VirtualMachineHardwareCPU">     

                  <aav name="VMware_CPU_Shares" type="String">normal

                  </aav>     

                  <aav name="VMware_Hyperthreading_Sharing_Mode" type="String">any

                  </aav>     

                  <aav name="VMware_CPU_Reservation" type="Integer">0

                  </aav>     

                  <aav name="VMware_Number_of_Virtual_Processors" type="Integer">1

                  </aav>     

                  <aav name="VMware_CPU_Shares_Value" type="Integer">4000

                  </aav>     

                  <aav name="VMware_CPU_Limit" type="Integer">-1

                  </aav>   

                  </ASSET>   

                  <ASSET Action="Add" ItemId="1" Name="Memory" Path="/ (Time in agent's deploy log:: 04/30/2015 06:59:57) 1 /Templates/WIN2008

                  • 6. Re: VM creation failed in BSA
                    Nitin Murkute

                    Hi Raja,

                     

                    Thanks for your prompt response.

                     

                    The VGP which I am using is having all the required information to deploy the VM on vCenter but why it is missing some information in deployXML while deploying the same on vCenter Server, is not understanding. I am attaching screenshot for the reference as shown below...

                     

                    Untitled.png