[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13689543#comment-13689543
 ] 

Venkata Siva Vijayendra Bhamidipati commented on CLOUDSTACK-2385:
-----------------------------------------------------------------

>From the logs it looks like the zone is dedicated, and it's not visible to the 
>extractTemplate code path in HypervisorTemplateAdapter. Taking a look.
                
> template download fails with Unexpected failure in Vmware.
> ----------------------------------------------------------
>
>                 Key: CLOUDSTACK-2385
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2385
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Template
>    Affects Versions: 4.2.0
>            Reporter: Kiran Koneti
>            Priority: Blocker
>             Fix For: 4.2.0
>
>         Attachments: management-server.zip
>
>
> I registered a template with the parameters extractable=yes,Public=yes and 
> Featured=yes.
> Then later I tried to download the template from the UI.
> It shows an error message in the UI as below:"PrepareExtractTemplate: Failed 
> to create OVA for template extraction"
> and in the management server log below are the error messages observed.
> "2013-05-08 17:03:14,828 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) 
> ===START===  10.146.0.136 -- GET  
> command=extractTemplate&mode=HTTP_DOWNLOAD&id=21e135aa-4df9-4818-b89c-99c64de5ee70&zoneid=58e1ce4d-fb5c-48c4-948f-408c969deae0&response=json&sessionkey=xrRnNHcHp3bh6nKU0gggxWRiioQ%3D&_=1367993227024
> 2013-05-08 17:03:14,865 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-4:null) submit async job-78, details: AsyncJobVO {id:78, 
> userId: 2, accountId: 2, sessionKey: null, instanceType: Template, 
> instanceId: 206, cmd: 
> org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd, 
> cmdOriginator: null, cmdInfo: 
> {"response":"json","id":"21e135aa-4df9-4818-b89c-99c64de5ee70","sessionkey":"xrRnNHcHp3bh6nKU0gggxWRiioQ\u003d","ctxUserId":"2","zoneid":"58e1ce4d-fb5c-48c4-948f-408c969deae0","httpmethod":"GET","_":"1367993227024","ctxAccountId":"2","ctxStartEventId":"322","mode":"HTTP_DOWNLOAD"},
>  cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
> processStatus: 0, resultCode: 0, result: null, initMsid: 6703101771911, 
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-05-08 17:03:14,868 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) 
> ===END===  10.146.0.136 -- GET  
> command=extractTemplate&mode=HTTP_DOWNLOAD&id=21e135aa-4df9-4818-b89c-99c64de5ee70&zoneid=58e1ce4d-fb5c-48c4-948f-408c969deae0&response=json&sessionkey=xrRnNHcHp3bh6nKU0gggxWRiioQ%3D&_=1367993227024
> 2013-05-08 17:03:14,872 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-26:job-78) Executing 
> org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd for job-78
> 2013-05-08 17:03:14,894 DEBUG [cloud.template.HypervisorTemplateAdapter] 
> (Job-Executor-26:job-78) Failed to create OVA for template 
> Tmpl[206-OVA-206-2-70244819-a3df-3daf-882c-c05c22c9645a due to zone 
> non-existing.
> 2013-05-08 17:03:14,905 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-26:job-78) Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd
> com.cloud.utils.exception.CloudRuntimeException: PrepareExtractTemplate: 
> Failed to create OVA for template extraction.
>         at 
> com.cloud.template.HypervisorTemplateAdapter.prepareExtractTemplate(HypervisorTemplateAdapter.java:263)
>         at 
> com.cloud.template.TemplateManagerImpl.extract(TemplateManagerImpl.java:375)
>         at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at 
> org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd.execute(ExtractTemplateCmd.java:128)
>         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:1110)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-05-08 17:03:14,907 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-26:job-78) Complete async job-78, jobStatus: 2, resultCode: 
> 530, result: Error Code: 530 Error text: PrepareExtractTemplate: Failed to 
> create OVA for template extraction.
> 2013-05-08 17:03:16,752 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-18:null) Ping from 5
> 2013-05-08 17:03:17,262 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-198:null) Ping from 1
> 2013-05-08 17:03:17,884 DEBUG [cloud.api.ApiServlet] (catalina-exec-16:null) 
> ===START===  10.146.0.136 -- GET  
> command=queryAsyncJobResult&jobId=847d337a-0f3c-4396-8d78-7efad2f9a7b2&response=json&sessionkey=xrRnNHcHp3bh6nKU0gggxWRiioQ%3D&_=1367993230129
> 2013-05-08 17:03:17,903 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-16:null) Async job-78 completed"

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

Reply via email to