cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "虚~无~缥~缈~" <hngx...@qq.com>
Subject 请教为何用模拟模板不能部署虚拟机
Date Wed, 23 Oct 2013 02:46:30 GMT
环境cloudstack4.2+esxi5.1,其它操作系统是rhel6.2 x64
有两个模板centos58和rhel64(自己通过esxi5.1里做的,并成功上传了)




通过模板创建虚拟机


报错:


tail -f catalina.out 



=============
INFO  [vmware.resource.VmwareResource] (DirectAgent-230:18.8.5.111) Executing resource DhcpEntryCommand:
{"vmMac":"06:85:d0:00:00:13","vmIpAddress":"18.8.5.164","vmName":"ee925a2e-615d-4332-917c-35cc54c8298f","defaultRouter":"18.8.5.1","defaultDns":"18.8.5.159","duid":"00:03:00:01:06:85:d0:00:00:13","isDefault":true,"executeInSequence":true,"accessDetails":{"router.guest.ip":"18.8.5.159","zone.network.type":"Basic","router.name":"r-4-VM","router.ip":"0.0.0.0"},"wait":0}
INFO  [vmware.resource.VmwareResource] (DirectAgent-230:18.8.5.111) dhcp_entry command on
domain router 18.8.5.159 completed
INFO  [vmware.resource.VmwareResource] (DirectAgent-481:18.8.5.111) Executing resource SavePasswordCommand.
vmName: ee925a2e-615d-4332-917c-35cc54c8298f, vmIp: 18.8.5.164, password: f*************
INFO  [vmware.resource.VmwareResource] (DirectAgent-481:18.8.5.111) savepassword command on
domain router 18.8.5.159 completed
INFO  [vmware.resource.VmwareResource] (DirectAgent-481:18.8.5.111) Executing resource VmDataCommand:
{"vmIpAddress":"18.8.5.164","vmName":"ee925a2e-615d-4332-917c-35cc54c8298f","executeInSequence":true,"accessDetails":{"router.guest.ip":"18.8.5.159","zone.network.type":"Basic","router.ip":"0.0.0.0","router.name":"r-4-VM"},"wait":0}
INFO  [vmware.resource.VmwareResource] (DirectAgent-481:18.8.5.111) vm_data command on domain
router 18.8.5.159 completed
INFO  [storage.volume.VolumeServiceImpl] (Job-Executor-2:job-16 = [ 7ea0a79b-a024-464b-9327-11c07fd09e05
]) lock is acquired for VMTemplateStoragePool 3
INFO  [storage.volume.VolumeServiceImpl] (Job-Executor-2:job-16 = [ 7ea0a79b-a024-464b-9327-11c07fd09e05
]) releasing lock for VMTemplateStoragePool 3
WARN  [utils.db.Merovingian2] (Job-Executor-2:job-16 = [ 7ea0a79b-a024-464b-9327-11c07fd09e05
]) Was unable to find lock for the key template_spool_ref3 and thread id 863279812
INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-2:job-16 = [ 7ea0a79b-a024-464b-9327-11c07fd09e05
]) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is unreachable:
Unable to create Vol[13|vm=9|ROOT]:Unable to copy template to primary storage due to exception:Exception:
java.lang.NullPointerException
Message: null

        at com.cloud.storage.VolumeManagerImpl.recreateVolume(VolumeManagerImpl.java:2544)
        at com.cloud.storage.VolumeManagerImpl.prepare(VolumeManagerImpl.java:2592)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:889)
        at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
        at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227)
        at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3406)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
INFO  [vmware.resource.VmwareResource] (DirectAgent-391:18.8.5.111) Executing resource StopCommand:
{"isProxy":false,"executeInSequence":true,"vmName":"i-2-9-VM","wait":0}
INFO  [vmware.mo.HostMO] (DirectAgent-391:18.8.5.111) VM i-2-9-VM not found in host cache
INFO  [vmware.resource.VmwareResource] (DirectAgent-391:18.8.5.111) VM i-2-9-VM is no longer
in vSphere
WARN  [apache.cloudstack.alerts] (Job-Executor-2:job-16 = [ 7ea0a79b-a024-464b-9327-11c07fd09e05
])  alertType:: 8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null // message:: Failed
to deploy Vm with Id: 9, on Host with Id: null
INFO  [user.vm.DeployVMCmd] (Job-Executor-2:job-16 = [ 7ea0a79b-a024-464b-9327-11c07fd09e05
]) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment
for VM[User|ee925a2e-615d-4332-917c-35cc54c8298f]Scope=interface com.cloud.dc.DataCenter;
id=1
INFO  [user.vm.DeployVMCmd] (Job-Executor-2:job-16 = [ 7ea0a79b-a024-464b-9327-11c07fd09e05
]) Unable to create a deployment for VM[User|ee925a2e-615d-4332-917c-35cc54c8298f]
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for
VM[User|ee925a2e-615d-4332-917c-35cc54c8298f]Scope=interface com.cloud.dc.DataCenter; id=1
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:842)
        at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
        at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:237)
        at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3406)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)

-------------------
Mime
  • Unnamed multipart/related (inline, 8-Bit, 0 bytes)
View raw message