You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sateesh Chodapuneedi (JIRA)" <ji...@apache.org> on 2013/07/27 18:51:48 UTC
[jira] [Created] (CLOUDSTACK-3879) [VMware] NPE while attempting to
create template from volume
Sateesh Chodapuneedi created CLOUDSTACK-3879:
------------------------------------------------
Summary: [VMware] NPE while attempting to create template from volume
Key: CLOUDSTACK-3879
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3879
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Storage Controller, VMware
Affects Versions: 4.2.0
Reporter: Sateesh Chodapuneedi
Assignee: Sateesh Chodapuneedi
Priority: Critical
Fix For: 4.2.0
1) Created advanced zone over VMware ESXi servers with zone wide primary storage
2) Created snapshot of root volume
3) Attempted to create template from snapshot taken above. This fails with NPE,
2013-07-27 12:31:13,669 DEBUG [cloud.api.ApiServlet] (32556950@qtp-16286583-10:null) ===START=== 10.102.192.116 -- GET command=createTemplate&response=json&sessionkey=43ZRAgYHldwFu%2FeO3dYIsw611fA%3D&snapshotid=9272e430-d577-464a-a7ed-49fc95fe4927&name=hi&displayText=hi&osTypeId=dc4594c8-f58d-11e2-b672-ce873e01cfe5&isPublic=true&passwordEnabled=false&isdynamicallyscalable=true&_=1374908473578
2013-07-27 12:31:13,672 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null) SeqA 3-12905: Processing Seq 3-12905: { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n \"connections\": []\n}","wait":0}}] }
2013-07-27 12:31:13,677 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null) SeqA 3-12905: Sending Seq 3-12905: { Ans: , MgmtId: 227080256212965, via: 3, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-07-27 12:31:13,778 DEBUG [cloud.template.TemplateManagerImpl] (32556950@qtp-16286583-10:null) This template is getting created from other template, setting source template Id to: 7
2013-07-27 12:31:13,824 DEBUG [cloud.async.AsyncJobManagerImpl] (32556950@qtp-16286583-10:null) submit async job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ], details: AsyncJobVO {id:74, userId: 2, accountId: 2, sessionKey: null, instanceType: Template, instanceId: 202, cmd: org.apache.cloudstack.api.command.user.template.CreateTemplateCmd, cmdOriginator: null, cmdInfo: {"sessionkey":"43ZRAgYHldwFu/eO3dYIsw611fA\u003d","cmdEventType":"TEMPLATE.CREATE","ctxUserId":"2","httpmethod":"GET","isPublic":"true","osTypeId":"dc4594c8-f58d-11e2-b672-ce873e01cfe5","isdynamicallyscalable":"true","response":"json","id":"202","displayText":"hi","snapshotid":"9272e430-d577-464a-a7ed-49fc95fe4927","passwordEnabled":"false","name":"hi","_":"1374908473578","ctxAccountId":"2","ctxStartEventId":"252"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 227080256212965, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-07-27 12:31:13,827 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]
2013-07-27 12:31:13,830 DEBUG [cloud.api.ApiServlet] (32556950@qtp-16286583-10:null) ===END=== 10.102.192.116 -- GET command=createTemplate&response=json&sessionkey=43ZRAgYHldwFu%2FeO3dYIsw611fA%3D&snapshotid=9272e430-d577-464a-a7ed-49fc95fe4927&name=hi&displayText=hi&osTypeId=dc4594c8-f58d-11e2-b672-ce873e01cfe5&isPublic=true&passwordEnabled=false&isdynamicallyscalable=true&_=1374908473578
2013-07-27 12:31:13,878 DEBUG [storage.image.TemplateDataFactoryImpl] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) template 202 is already in store:1, type:Image
2013-07-27 12:31:13,889 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) copyAsync inspecting src type SNAPSHOT copyAsync inspecting dest type TEMPLATE
2013-07-27 12:31:13,950 DEBUG [agent.transport.Request] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) Seq 4-732626990: Sending { Cmd , MgmtId: 227080256212965, via: 4, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/6/e60f3c4d-baa1-47dd-99a5-09420ae929d1/e60f3c4d-baa1-47dd-99a5-09420ae929d1","volume":{"uuid":"0f6e93b2-f3d2-4705-bb94-4bee65fcb331","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"7b2ba866-ca87-3954-a935-a354f3889574","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.100","path":"/cpg_vol/sree/p2","port":2049}},"name":"ROOT-5","size":0,"path":"ROOT-5-6","volumeId":6,"vmName":"i-2-5-VM","accountId":2,"format":"OVA","id":6,"hypervisorType":"None"},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/sree/ss1","_role":"Image"}},"vmName":"i-2-5-VM","name":"m1_ROOT-5_20130727064511","hypervisorType":"VMware","id":2}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/202","uuid":"6b20d073-148d-43bd-995e-3a0f05253a74","id":202,"format":"RAW","accountId":2,"hvm":true,"displayText":"hi","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/sree/ss1","_role":"Image"}},"name":"249f68a5c-8493-3c2c-8bf4-89821c21fc3b","hypervisorType":"VMware"}},"executeInSequence":false,"wait":10800}}] }
2013-07-27 12:31:14,281 DEBUG [agent.transport.Request] (AgentManager-Handler-2:null) Seq 4-732626990: Processing: { Ans: , MgmtId: 227080256212965, via: 4, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"CreatePrivateTemplateFromSnapshotCommand exception: java.lang.NullPointerException","wait":0}}] }
2013-07-27 12:31:14,281 DEBUG [agent.transport.Request] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) Seq 4-732626990: Received: { Ans: , MgmtId: 227080256212965, via: 4, Ver: v1, Flags: 10, { CopyCmdAnswer } }
2013-07-27 12:31:14,302 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) Failed to create templateCreatePrivateTemplateFromSnapshotCommand exception: java.lang.NullPointerException
2013-07-27 12:31:14,323 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to create templateCreatePrivateTemplateFromSnapshotCommand exception: java.lang.NullPointerException
at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1360)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:263)
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:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-07-27 12:31:14,330 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-11:job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ]) Complete async job-74 = [ 47b0df42-ca8b-4d40-8516-54b9c3f4c4c7 ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to create templateCreatePrivateTemplateFromSnapshotCommand exception: java.lang.NullPointerException
2013-07-27 12:31:16,341 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) VmStatsCollector is running...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira