You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "shweta agarwal (JIRA)" <ji...@apache.org> on 2013/06/27 13:56:19 UTC

[jira] [Created] (CLOUDSTACK-3238) creating template from snapshot fails in vmware

shweta agarwal created CLOUDSTACK-3238:
------------------------------------------

             Summary: creating template from snapshot fails in vmware
                 Key: CLOUDSTACK-3238
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3238
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Template, VMware
    Affects Versions: 4.2.0
         Environment: vmware advanced zone with cluster level primary storage
            Reporter: shweta agarwal
            Priority: Blocker
             Fix For: 4.2.0


Repro steps:
Create a VM
create a snapshot of root disk of the VM
Create a template from the backed up snapshot

Bug:
hittting exception:
2013-06-27 17:16:10,912 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-13:null) submit async job-371, details: AsyncJobVO {id:371, userId: 2, accountId: 2, sessionKey: null, instanceType: Template, instanceId: 228, cmd: org.apache.cloudstack.api.command.user.template.CreateTemplateCmd, cmdOriginator: null, cmdInfo: {"sessionkey":"u7fuCDtJanfTR6ObPknZNoA9z6c\u003d","ctxUserId":"2","httpmethod":"GET","osTypeId":"9e1b6a5c-d98f-11e2-95e7-0682fe000017","isPublic":"false","response":"json","id":"228","displayText":"admin","snapshotid":"045d12f4-257b-4c28-b975-1b594fd9b2a6","passwordEnabled":"false","name":"admin","_":"1372333569675","ctxAccountId":"2","ctxStartEventId":"1426"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 7159676928023, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-06-27 17:16:10,915 DEBUG [cloud.api.ApiServlet] (catalina-exec-13:null) ===END===  10.146.0.12 -- GET  command=createTemplate&response=json&sessionkey=u7fuCDtJanfTR6ObPknZNoA9z6c%3D&snapshotid=045d12f4-257b-4c28-b975-1b594fd9b2a6&name=admin&displayText=admin&osTypeId=9e1b6a5c-d98f-11e2-95e7-0682fe000017&isPublic=false&passwordEnabled=false&_=1372333569675
2013-06-27 17:16:10,980 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-56:job-371) Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-371
2013-06-27 17:16:11,186 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-56:job-371) Failed to create templatejava.lang.NullPointerException
2013-06-27 17:16:11,265 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-56:job-371) Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to create templatejava.lang.NullPointerException
        at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1770)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:256)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
        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-06-27 17:16:11,268 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-56:job-371) Complete async job-371, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to create templatejava.lang.NullPointerException
2013-06-27 17:16:11,270 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-422:null) Seq 1-646158771: Response Received:
2013-06-27 17:16:11,271 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-646158771: Received:  { Ans: , MgmtId: 7159676928023, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
2013-06-27 17:16:11,283 DEBUG [agent.manager.DirectAgentAttache] (DirectA



Attaching MS log and ssvm logs for the same


--
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