[
https://issues.apache.org/jira/browse/CLOUDSTACK-4033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731020#comment-13731020
]
Min Chen commented on CLOUDSTACK-4033:
--------------------------------------
This is a duplicate of https://issues.apache.org/jira/browse/CLOUDSTACK-4003.
Also the repro step here is misleading, the failed stack shows that you are
creating a template from snapshot, not from volume, so we need to create a
snapshot before upgrade.
> template creation from snapshot failed after upgrade getting NPE
> ----------------------------------------------------------------
>
> Key: CLOUDSTACK-4033
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4033
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: KVM, Upgrade
> Affects Versions: 4.2.0
> Environment: upgrade 3.0.3 to 4.2 with advanced zone and KVM host
> Reporter: shweta agarwal
> Assignee: Min Chen
> Priority: Blocker
>
> Repro steps :
> 1.Created a volume before upgrade
> 2. Trying to create a template of that volume
> bug:
> Hitting exception java NPE
> 2013-08-02 10:51:25,454 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null)
> ===END=== 10.146.0.13 -- GET
> command=createTemplate&response=json&sessionkey=Zyi8PabGY6x6PizqWhq%2B2C%2Ba6ow%3D&snapshotid=acff0a0f-232f-4a44-bc64-30bbc9fc63fd&name=from+snapshot&displayText=from+snapshot&osTypeId=7830e08c-95b9-4649-8ad9-fd17fca2145a&isPublic=true&passwordEnabled=false&isdynamicallyscalable=false&_=1375420884718
> 2013-08-02 10:51:25,472 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-144:job-307 = [ 6043417d-ce77-4477-af18-1c190e57cfcb ])
> Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> for job-307 = [ 6043417d-ce77-4477-af18-1c190e57cfcb ]
> 2013-08-02 10:51:25,542 DEBUG [storage.image.TemplateDataFactoryImpl]
> (Job-Executor-144:job-307 = [ 6043417d-ce77-4477-af18-1c190e57cfcb ])
> template 213 is already in store:2, type:Image
> 2013-08-02 10:51:25,795 ERROR [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-144:job-307 = [ 6043417d-ce77-4477-af18-1c190e57cfcb ])
> Unexpected exception while executing
> org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> java.lang.NullPointerException
> at
> org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:45)
> at
> org.apache.cloudstack.storage.image.TemplateServiceImpl.copyAsync(TemplateServiceImpl.java:549)
> at
> org.apache.cloudstack.storage.image.TemplateServiceImpl.createTemplateFromSnapshotAsync(TemplateServiceImpl.java:556)
> at
> com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1358)
> 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-08-02 10:51:25,799 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-144:job-307 = [ 6043417d-ce77-4477-af18-1c190e57cfcb ])
> Complete async job-307 = [ 6043417d-ce77-4477-af18-1c190e57cfcb ], jobStatus:
> 2, resultCode: 530, result: Error Code: 530 Error text: null
> 2013-08-02 10:51:27,559 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-3:null) SeqA 11-5096: Processing Seq 11-5096: { Cmd ,
> MgmtId: -1, via: 11, Ver: v1, Flags: 11,
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":68,"_loadInfo":"{\n
> \"connections\": []\n}","wait":0}}] }
> 2013-08-02 10:51:27,577 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-3:null) SeqA 11-5096: Sending Seq 11-5096: { Ans: ,
> MgmtId: 7181084655717, via: 11, Ver: v1, Flags: 100010,
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
>
>
>
>
--
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