cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeetha Hariharan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-2493) Object_Store_Refactor - Template - ClassCastException when trying to extract Template.
Date Tue, 14 May 2013 23:48:13 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sangeetha Hariharan updated CLOUDSTACK-2493:
--------------------------------------------

    Summary: Object_Store_Refactor - Template - ClassCastException when trying to extract
Template.  (was: Object_Store_Refactor - ISO - ClassCastException when trying to extract Template.)
    
> Object_Store_Refactor - Template - ClassCastException when trying to extract Template.
> --------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2493
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2493
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: Build from object store
>            Reporter: Sangeetha Hariharan
>             Fix For: 4.2.0
>
>
> Steps to reproduce the problem:
> Register an template
> Try to download template.
> This fails with ClassCastException.
> management server logs:
> 2013-05-14 15:45:20,798 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-9:null)
submit async job-33, details: AsyncJobVO {id:                     33, 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":"8dc63300-23a1-4834-92c2-96437173fb9f","sessionke
                    y":"fpF8X5BcWJ4oaER313Q5XcSwaps\u003d","ctxUserId":"2","zoneid":"a281057d-2a6a-47c1-ab05-f36a20006129","httpmethod":"GET","_":"13685
                    74939655","ctxAccountId":"2","ctxStartEventId":"139","mode":"HTTP_DOWNLOAD"},
cmdVersion: 0, callbackType: 0, callbackAddress: null,                      status: 0, processStatus:
0, resultCode: 0, result: null, initMsid: 206915885079359, completeMsid: null, lastUpdated:
null, lastPol                     led: null, created: null}
> 2013-05-14 15:45:20,799 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-2:job-33)
Executing org.apache.cloudstack.api.command.                     user.template.ExtractTemplateCmd
for job-33
> 2013-05-14 15:45:20,800 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===END===
 10.217.252.128 -- GET  command=extractTemplat                     e&mode=HTTP_DOWNLOAD&id=8dc63300-23a1-4834-92c2-96437173fb9f&zoneid=a281057d-2a6a-47c1-ab05-f36a20006129&response=json&sessionkey=fp
                    F8X5BcWJ4oaER313Q5XcSwaps%3D&_=1368574939655
> 2013-05-14 15:45:20,830 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-321:null)
Seq 1-1632108757: Response Received:
> 2013-05-14 15:45:20,831 DEBUG [agent.transport.Request] (StatsCollector-1:null) Seq 1-1632108757:
Received:  { Ans: , MgmtId: 206915                     885079359, via: 1, Ver: v1, Flags:
10, { GetHostStatsAnswer } }
> 2013-05-14 15:45:20,847 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-2:job-33)
Unexpected exception while executing org.apa                     che.cloudstack.api.command.user.template.ExtractTemplateCmd
> java.lang.ClassCastException: org.apache.cloudstack.storage.image.store.ImageStoreImpl
cannot be cast to org.apache.cloudstack.stora                     ge.datastore.db.ImageStoreVO
>         at com.cloud.storage.upload.UploadMonitorImpl.createEntityDownloadURL(UploadMonitorImpl.java:232)
>         at com.cloud.template.TemplateManagerImpl.extract(TemplateManagerImpl.java:501)
>         at com.cloud.template.TemplateManagerImpl.extract(TemplateManagerImpl.java:372)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostP
                    rocessor.java:125)
>         at org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd.execute(ExtractTemplateCmd.java:129)
>         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-14 15:45:20,848 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-2:job-33)
Complete async job-33, jobStatus: 2, resultC                     ode: 530, result: Error Code:
530 Error text: org.apache.cloudstack.storage.image.store.ImageStoreImpl cannot be cast to
org.apache.                     cloudstack.storage.datastore.db.ImageStoreVO

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

Mime
View raw message