4 Replies Latest reply on May 8, 2015 5:17 AM by Rajkumar Rajpurohit

    VMWare Template Based Provisioning Issue

    Rajkumar Rajpurohit

      Hi,

      I am trying to run an Virtual Guest Job on vcenter server but the job fails with the error:

      "Error returned from plug-in ; Plug-in: /DAALDaemonAdapter ; Plug-in function: blAsset_PutAll ; Plug-in asset: BMC_VMware_VirtualMachineTemplate:edcvc5.mcafee.int:/Templates/bc-appsvc01 ; Plug-in error code: 101 ; Plug-in error message: Java heap space ; Plug-in detail message: Exception occurred in plugin: java.lang.OutOfMemoryError: Java heap space".

       

      I am attaching the job run export, Transaction log and the CO server log files.

       

      The Java Heap Size on the App servers (Infrastructure Management) is 4096. I changed it to 5120 and restarted app servers, but this did not resolve the issue. I also changed the Heap size in the file "/C/Program Files/BMC Software/BladeLogic/RSCD/daal/Implementation/BMC_VMware_VirtualInfrastructureManager_win64/win64/JPAProgramConfig.xml" and restarted the rscd agent on Vcenter server. But even this did not resolve the issue.

       

      The bladelogic version we are using is 8.2 SP4.

       

      Thanks

      Rajkumar.

       

      Removing old log file and Adding latest log files.

        • 1. Re: VMWare Template Based Provisioning Issue
          Bill Robinson

          Since its’ the blcoserver process that seems to be running out of heap, changing the heap size of the appserver is kind of pointless.  you need to adjust the heap size of the blcoserver process on the vcenter server.

           

          In the rscd install directory on the vcenter server look for:

          \daal\Implementation\BMC_VMware_VirtualInfrastructureManager_win64\win64\JPAProgramConfig.xml

           

          Set the xmx higher – eg:

           

          • 2. Re: VMWare Template Based Provisioning Issue
            Rajkumar Rajpurohit

            Earlier i increased the value to 1.5GB, which did not work. But changing the value to 4096 did the trick. However, i am facing another issue now.

             

            The error is :

            05/07/15 22:14:45.815 ERROR    blcoserver -  EDCVC5 11520 BladeLogicRSCD (Not_available): (Not_available): BSA_ERROR:java.lang.IllegalArgumentException: Illegal group reference

            05/07/15 22:14:45.817 ERROR    blcoserver -  EDCVC5 11520 BladeLogicRSCD (BladeLogicRSCD): (Not_available): Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: java.lang.IllegalArgumentException: Illegal group reference

            05/07/15 22:14:45.818 ERROR    blcoserver -  EDCVC5 11520 BladeLogicRSCD (BladeLogicRSCD): (Not_available): java.lang.IllegalArgumentException: Illegal group reference

            05/07/15 22:14:45.819 ERROR    blcoserver -  EDCVC5 11520 BladeLogicRSCD (BladeLogicRSCD): (Not_available): Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: java.lang.IllegalArgumentException: Illegal group reference com.bladelogic.vmware.deployer.VMwareLegacyDeployer.deploy(VMwareLegacyDeployer.java:350) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.bulkPutAttributeValues(VMwareLegacyDeployer.java:108) 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:693) Caused by: java.lang.IllegalArgumentException: Illegal group reference java.util.regex.Matcher.appendReplacement(Unknown Source) java.util.regex.Matcher.replaceFirst(Unknown Source) java.lang.String.replaceFirst(Unknown Source) com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineCustomizationDeployer.addAssetInternal(VirtualMachineCustomizationDeployer.java:237) com.bladelogic.om.virtualization.vmware.deploy.AbstractDeployer.addAsset(AbstractDeployer.java:206) com.bladelogic.om.virtualization.vmware.VMWareDeployService.processAsset(VMWareDeployService.java:693) com.bladelogic.om.virtualization.vmware.VMWareDeployService.processAssets(VMWareDeployService.java:601) com.bladelogic.om.virtualization.vmware.VMWareDeployService.commit(VMWareDeployService.java:276) com.bladelogic.om.virtualization.vmware.VMWareDeployService.deploy(VMWareDeployService.java:169) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.deploy(VMwareLegacyDeployer.java:342) com.bladelogic.vmware.deployer.VMwareLegacyDeployer.bulkPutAttributeValues(VMwareLegacyDeployer.java:108) 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:693)

            05/07/15 22:14:45.830 ERROR    blcoserver -  EDCVC5 11520 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:edcvc5.mcafee.int:/Templates/bc-appsvc01 ; Plug-in error code: 800 ; Plug-in error message: java.lang.IllegalArgumentException: Illegal group reference ; Plug-in detail message: Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: java.lang.IllegalArgumentException: Illegal group reference

            05/07/15 22:14:45.836 INFO blcoserver -  EDCVC5 11520 BladeLogicRSCD (Not_available): (Not_available): Completed Method: DAAL.putAll (Pid[5400], ThreadID[0])

            • 3. Re: VMWare Template Based Provisioning Issue
              Rajkumar Rajpurohit

              Removed the old log file and added the new log files.

               

              Also, please note that this issue is occurring only when i select "CUSTOMIZE OS" option in the Virtual Guest Job. If this is not not selected then the job executes successfully. I also checked VMWare Tools on the template that is being used and it has latest VMWare Tools installed.

              • 4. Re: VMWare Template Based Provisioning Issue
                Rajkumar Rajpurohit

                Issue is now resolved. This "llegal group reference" error might occur in 2 cases:

                     1) The Domain Account Password being over 16 chars in length.

                      2) The Domain Account Password have special characters like $ and ! sign.

                 

                This is a known issue and has been resolved in latest releases.

                 

                Thanks

                Rajkumar.