incubator-cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tanthalas <tanthalas...@hotmail.com>
Subject Re: 无法通过ISO实例创建模板
Date Thu, 21 Feb 2013 09:47:54 GMT
从log来看存储返回的结果是,这个VM的物理大小为0,所以会报错。
"storage.CreatePrivateTemplateAnswer":{"_virtualSize":0,"_physicalSize":0,"result":false,"

你需要检查这个VM是不是安装好了,这个VM镜像文件是不是有问题,还是存储有问题。

2013-02-21 
刘宇超  Richard Liu


发件人: cheng 
发送时间: 2013-02-21  15:33:02 
收件人: cloudstack-users-cn 
抄送: 
主题: 无法通过ISO实例创建模板 
 
我用上传ISO文件,并通过ISO创建好实例。停用实例之后创建模板时报错,
麻烦那位大哥碰到过这样的问题帮我分析一下。
log内容如下所示:
2013-02-21 13:51:07,686 DEBUG [cloud.vm.VirtualMachineManagerImpl] (StatsCollector-2:null)
Cleanup succeeded. Details null
2013-02-21 13:51:09,492 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-12:null) submit
async job-12, details: AsyncJobVO {id:12, userId: 2, accountId: 2, sessionKey: null, instanceType:
Template, instanceId: 206, cmd: com.cloud.api.commands.CreateTemplateCmd, cmdOriginator: null,
cmdInfo: {"sessionkey":"hamPEWDLAfJfPO7aVK8SsS+T5PQ\u003d","volumeId":"85504951-b0ad-472f-8f66-af41e1afabc4","ctxUserId":"2","osTypeId":"f508d639-2d78-48bf-9549-ad4cecd2afb3","isPublic":"false","response":"json","id":"206","displayText":"ubuntu","passwordEnabled":"false","name":"ubuntu","_":"1361425880028","ctxAccountId":"2","ctxStartEventId":"61"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 69135547232, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
2013-02-21 13:51:09,493 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-6:job-12) Executing
com.cloud.api.commands.CreateTemplateCmd for job-12
2013-02-21 13:51:09,712 DEBUG [agent.transport.Request] (Job-Executor-6:job-12) Seq 5-1990918333:
Sending  { Cmd , MgmtId: 69135547232, via: 5, Ver: v1, Flags: 100011, [{"CreatePrivateTemplateFromVolumeCommand":{"_vmName":"i-2-3-VM","_volumePath":"ROOT-3","_userSpecifiedName":"ubuntu","_uniqueName":"9e4e5999-256a-4e60-b6b5-642a2738205a","_templateId":206,"_accountId":2,"_secondaryStorageUrl":"nfs://172.17.9.2/export/secondary","primaryStoragePoolNameLabel":"ececb9b5-ac16-3da3-a418-a8d3b8c3de6c","wait":10800}}]
}
2013-02-21 13:51:09,977 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM
2013-02-21 13:51:10,049 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
Zone 1 is ready to launch console proxy
2013-02-21 13:51:10,493 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 routers. 
2013-02-21 13:51:30,831 DEBUG [agent.transport.Request] (AgentManager-Handler-8:null) Seq
5-1990918333: Processing:  { Ans: , MgmtId: 69135547232, via: 5, Ver: v1, Flags: 10, [{"storage.CreatePrivateTemplateAnswer":{"_virtualSize":0,"_physicalSize":0,"result":false,"details":"CreatePrivateTemplateFromVolumeCommand
exception: java.lang.NullPointerException\ncom.cloud.hypervisor.vmware.mo.HostMO.getVmPropertiesOnHyperHost(HostMO.java:576)\ncom.cloud.hypervisor.vmware.mo.HostMO.loadVmCache(HostMO.java:475)\ncom.cloud.hypervisor.vmware.mo.HostMO.findVmOnHyperHost(HostMO.java:465)\ncom.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:260)\ncom.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.execute(VmwareSecondaryStorageResourceHandler.java:117)\ncom.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorageResourceHandler.java:69)\ncom.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:50)\ncom.cloud.agent.Agent.processRequest(Agent.java:517)\ncom.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:827)\ncom.cloud.utils.nio.Task.run(Task.java:79)\njava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)\njava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)\njava.lang.Thread.run(Thread.java:662)\n","wait":0}}]
}
2013-02-21 13:51:30,831 DEBUG [agent.transport.Request] (Job-Executor-6:job-12) Seq 5-1990918333:
Received:  { Ans: , MgmtId: 69135547232, via: 5, Ver: v1, Flags: 10, { CreatePrivateTemplateAnswer
} }
2013-02-21 13:51:30,984 WARN  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-6:job-12)
Cleanup failed due to CreatePrivateTemplateFromVolumeCommand exception: java.lang.NullPointerException
com.cloud.hypervisor.vmware.mo.HostMO.getVmPropertiesOnHyperHost(HostMO.java:576)
com.cloud.hypervisor.vmware.mo.HostMO.loadVmCache(HostMO.java:475)
com.cloud.hypervisor.vmware.mo.HostMO.findVmOnHyperHost(HostMO.java:465)
com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:260)
com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.execute(VmwareSecondaryStorageResourceHandler.java:117)
com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorageResourceHandler.java:69)
com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:50)
com.cloud.agent.Agent.processRequest(Agent.java:517)
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:827)
com.cloud.utils.nio.Task.run(Task.java:79)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
2013-02-21 13:51:31,010 WARN  [cloud.vm.VirtualMachineManagerImpl] (AgentManager-Handler-8:null)
Cleanup failed due to CreatePrivateTemplateFromVolumeCommand exception: java.lang.NullPointerException
com.cloud.hypervisor.vmware.mo.HostMO.getVmPropertiesOnHyperHost(HostMO.java:576)
com.cloud.hypervisor.vmware.mo.HostMO.loadVmCache(HostMO.java:475)
com.cloud.hypervisor.vmware.mo.HostMO.findVmOnHyperHost(HostMO.java:465)
com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:260)
com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.execute(VmwareSecondaryStorageResourceHandler.java:117)
com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorageResourceHandler.java:69)
com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:50)
com.cloud.agent.Agent.processRequest(Agent.java:517)
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:827)
com.cloud.utils.nio.Task.run(Task.java:79)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
2013-02-21 13:51:31,112 ERROR [cloud.api.ApiDispatcher] (Job-Executor-6:job-12) Exception
while executing CreateTemplateCmd:
com.cloud.utils.exception.CloudRuntimeException: Failed to create a template
at com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:1640)
at com.cloud.utils.component.ComponentLocator$InterceptorDispatcher.intercept(ComponentLocator.java:1185)
at com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:231)
at com.cloud.api.commands.CreateTemplateCmd.execute(CreateTemplateCmd.java:260)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
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)
2013-02-21 13:51:31,114 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-6:job-12) Complete
async job-12, jobStatus: 2, resultCode: 530, result: com.cloud.api.response.ExceptionResponse@1f22a21f
2013-02-21 13:51:34,503 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null) Async
job-12 completed 
谢谢
cheng
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message