状况:
当通过BBSA进行虚拟机克隆时,Vcenter里面虚拟机创建完成,但是作业不会停止,1小时候作业失败,虚拟机回收。
agent日志:
[31 十月 2012 12:23:32,567] [Thread-928] [INFO] Response returned [31 十月 2012 12:29:50,541] [Thread-30] [INFO] Processing delete asset : win2k3 of type : BMC_VMware_VirtualMachine [31 十月 2012 12:30:05,580] [Thread-30] [INFO] Deleted the virtual machine win2k3 [31 十月 2012 12:30:15,595] [Thread-30] [ERROR] Commit failed com.bladelogic.om.virtualization.vmware.VMException: VM deploy from template failed at com.bladelogic.om.virtualization.vmware.VMWareWebService.monitorEventState(VMWareWebService.java:5948) at com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineCustomizationDeployer.waitForCustomizationToComplete(VirtualMachineCustomizationDeployer.java:104) at com.bladelogic.om.virtualization.vmware.deploy.VirtualMachineCustomizationDeployer.deploy(VirtualMachineCustomizationDeployer.java:69) at com.bladelogic.om.virtualization.vmware.VMWareDeployService.doDeploy(VMWareDeployService.java:535) at com.bladelogic.om.virtualization.vmware.VMWareDeployService.commit(VMWareDeployService.java:273) at com.bladelogic.om.virtualization.vmware.VMWareDeployService.deploy(VMWareDeployService.java:159) at com.bladelogic.om.virtualization.vmware.facade.VMWareDelegate.processRequest(VMWareDelegate.java:267) at com.bladelogic.om.virtualization.vmware.launcher.VMWareServiceLauncher.processRequest(VMWareServiceLauncher.java:84) [31 十月 2012 12:30:15,595] [Thread-30] [ERROR] exception while processing request [31 十月 2012 12:30:15,595] [Thread-30] [INFO] Response returned
作业报错:
"Error returned from plug-in ; Plug-in: /BMC_VMware_VirtualInfrastructureManager_win64 ; Plug-in function: blAsset_PutAll ; Plug-in asset: BMC_VMware_VirtualMachineTemplate:<server>:/Templates/<template name> ; Plug-in error code: 100 ; Plug-in error message: Internal error occurred. Index: 1, Size: 1 Please refer agent log for additional details"
BBSA调用Vcenter创建虚拟机流程:
通过BBSA创建虚拟机,发送指令给Vcenter,当正常情况下执行完Customization task,虚拟机创建完成。在整个创建过程中BBSA会根据Event的信息判断虚拟机是否创建完成,当获取到 'Customization Completed' 信息作业结束。如果在该过程中,无法获取或者出现网络问题,信息提取时间约为1个小时,1小时以后作业失败,虚拟机回收。
解决方案:
针对该问题可以从一下三个方面进行检查:
1.虚拟机的vmare tools是否安装成功
2.BBSA与Vcenter之间的网络连接是否正常
3.检查event信息是否正常
如果希望作业失败不回收虚拟机,可以通过修改一下配置实现:
rollback-for-vm-on-customization-fail=false