[jira] [Updated] (CLOUDSTACK-2528) Object_Store_Refactor - Not able to download volumes.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sangeetha Hariharan updated CLOUDSTACK-2528: Priority: Critical (was: Major) > Object_Store_Refactor - Not able to download volumes. > - > > Key: CLOUDSTACK-2528 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2528 > 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 >Assignee: edison su >Priority: Critical > Fix For: 4.2.0 > > Attachments: management-server.rar > > > 1.Using UI/createVolume API create new volume. > 2.Bring volume to ready state. > 3.Download volume using UI/extractVolume API > Volume downlaod fails. > Following exception seen in management server logs: > 8ce-dbb58722c34c&zoneid=387432e3-2470-475b-ae39-f4ef14e91779&mode=HTTP_DOWNLOAD&response=json&sessionkey=s5BZB6QnqMRZJHgCPOGxdTxPjMY%3D&_=1368668522760 > 2013-05-15 17:45:02,547 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-14:null) submit async job-47, details: AsyncJobVO {id:47, > userId: 2, accountId: 2, sessionKey: null, instanceType: Volume, instanceId: > 16, cmd: org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd, > cmdOriginator: null, cmdInfo: > {"id":"0e03eb25-8b1b-4f93-b8ce-dbb58722c34c","response":"json","sessionkey":"s5BZB6QnqMRZJHgCPOGxdTxPjMY\u003d","ctxUserId":"2","zoneid":"387432e3-2470-475b-ae39-f4ef14e91779","httpmethod":"GET","_":"1368668522760","ctxAccountId":"2","ctxStartEventId":"270","mode":"HTTP_DOWNLOAD"}, > cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, > processStatus: 0, resultCode: 0, result: null, initMsid: 206915885079359, > completeMsid: null, lastUpdated: null, lastPolled: null, created: null} > 2013-05-15 17:45:02,548 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-11:job-47) Executing > org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd for job-47 > 2013-05-15 17:45:02,550 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) > ===END=== 10.217.252.128 -- GET > command=extractVolume&id=0e03eb25-8b1b-4f93-b8ce-dbb58722c34c&zoneid=387432e3-2470-475b-ae39-f4ef14e91779&mode=HTTP_DOWNLOAD&response=json&sessionkey=s5BZB6QnqMRZJHgCPOGxdTxPjMY%3D&_=1368668522760 > 2013-05-15 17:45:02,598 DEBUG [cloud.server.ManagementServerImpl] > (Job-Executor-11:job-47) Extract Mode - HTTP_DOWNLOAD > 2013-05-15 17:45:02,604 DEBUG [agent.transport.Request] > (Job-Executor-11:job-47) Seq 1-1843200414: Sending { Cmd , MgmtId: > 206915885079359, via: 1, Ver: v1, Flags: 100111, > [{"com.cloud.agent.api.storage.CopyVolumeCommand":{"volumeId":16,"volumePath":"64bf190f-6e90-4fc1-86eb-5340c894e328","pool":{"id":1,"uuid":"e97b5727-d157-3dc1-b32c-065b99806623","host":"10.223.110.232","path":"/export/home/sangeetha/campo-systemp-1/primary","port":2049,"type":"NetworkFilesystem"},"secondaryStorageURL":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","toSecondaryStorage":true,"wait":10800}}] > } > 2013-05-15 17:45:02,604 DEBUG [agent.transport.Request] > (Job-Executor-11:job-47) Seq 1-1843200414: Executing: { Cmd , MgmtId: > 206915885079359, via: 1, Ver: v1, Flags: 100111, > [{"com.cloud.agent.api.storage.CopyVolumeCommand":{"volumeId":16,"volumePath":"64bf190f-6e90-4fc1-86eb-5340c894e328","pool":{"id":1,"uuid":"e97b5727-d157-3dc1-b32c-065b99806623","host":"10.223.110.232","path":"/export/home/sangeetha/campo-systemp-1/primary","port":2049,"type":"NetworkFilesystem"},"secondaryStorageURL":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","toSecondaryStorage":true,"wait":10800}}] > } > 2013-05-15 17:45:21,872 DEBUG [agent.transport.Request] > (Job-Executor-11:job-47) Seq 1-1843200414: Received: { Ans: , MgmtId: > 206915885079359, via: 1, Ver: v1, Flags: 110, { CopyVolumeAnswer } } > 2013-05-15 17:45:21,872 DEBUG [agent.manager.AgentAttache] > (DirectAgent-421:null) Seq 1-1843200414: No more commands found > 2013-05-15 17:45:21,964 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-11:job-47) Unexpected exception while executing > org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd > java.lang.ClassCastException: > org.apache.cloudstack.storage.image.store.ImageStoreImpl cannot be cast to > org.apache.cloudstack.storage.datastore.db.ImageStoreVO > at > com.cloud.storage.upload.UploadMonitorImpl.createVolumeDownloadURL(UploadMonitorImpl.java:289) > at > com.cloud.server.ManagementServerImpl.extractVolume(ManagementServerImpl.java:3439) > at > com.cloud.utils.component.ComponentInstantiationPostProces
[jira] [Updated] (CLOUDSTACK-2528) Object_Store_Refactor - Not able to download volumes.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sanjeev N updated CLOUDSTACK-2528: -- Attachment: management-server.rar management server log file attached > Object_Store_Refactor - Not able to download volumes. > - > > Key: CLOUDSTACK-2528 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2528 > 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 >Assignee: edison su > Fix For: 4.2.0 > > Attachments: management-server.rar > > > 1.Using UI/createVolume API create new volume. > 2.Bring volume to ready state. > 3.Download volume using UI/extractVolume API > Volume downlaod fails. > Following exception seen in management server logs: > 8ce-dbb58722c34c&zoneid=387432e3-2470-475b-ae39-f4ef14e91779&mode=HTTP_DOWNLOAD&response=json&sessionkey=s5BZB6QnqMRZJHgCPOGxdTxPjMY%3D&_=1368668522760 > 2013-05-15 17:45:02,547 DEBUG [cloud.async.AsyncJobManagerImpl] > (catalina-exec-14:null) submit async job-47, details: AsyncJobVO {id:47, > userId: 2, accountId: 2, sessionKey: null, instanceType: Volume, instanceId: > 16, cmd: org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd, > cmdOriginator: null, cmdInfo: > {"id":"0e03eb25-8b1b-4f93-b8ce-dbb58722c34c","response":"json","sessionkey":"s5BZB6QnqMRZJHgCPOGxdTxPjMY\u003d","ctxUserId":"2","zoneid":"387432e3-2470-475b-ae39-f4ef14e91779","httpmethod":"GET","_":"1368668522760","ctxAccountId":"2","ctxStartEventId":"270","mode":"HTTP_DOWNLOAD"}, > cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, > processStatus: 0, resultCode: 0, result: null, initMsid: 206915885079359, > completeMsid: null, lastUpdated: null, lastPolled: null, created: null} > 2013-05-15 17:45:02,548 DEBUG [cloud.async.AsyncJobManagerImpl] > (Job-Executor-11:job-47) Executing > org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd for job-47 > 2013-05-15 17:45:02,550 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) > ===END=== 10.217.252.128 -- GET > command=extractVolume&id=0e03eb25-8b1b-4f93-b8ce-dbb58722c34c&zoneid=387432e3-2470-475b-ae39-f4ef14e91779&mode=HTTP_DOWNLOAD&response=json&sessionkey=s5BZB6QnqMRZJHgCPOGxdTxPjMY%3D&_=1368668522760 > 2013-05-15 17:45:02,598 DEBUG [cloud.server.ManagementServerImpl] > (Job-Executor-11:job-47) Extract Mode - HTTP_DOWNLOAD > 2013-05-15 17:45:02,604 DEBUG [agent.transport.Request] > (Job-Executor-11:job-47) Seq 1-1843200414: Sending { Cmd , MgmtId: > 206915885079359, via: 1, Ver: v1, Flags: 100111, > [{"com.cloud.agent.api.storage.CopyVolumeCommand":{"volumeId":16,"volumePath":"64bf190f-6e90-4fc1-86eb-5340c894e328","pool":{"id":1,"uuid":"e97b5727-d157-3dc1-b32c-065b99806623","host":"10.223.110.232","path":"/export/home/sangeetha/campo-systemp-1/primary","port":2049,"type":"NetworkFilesystem"},"secondaryStorageURL":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","toSecondaryStorage":true,"wait":10800}}] > } > 2013-05-15 17:45:02,604 DEBUG [agent.transport.Request] > (Job-Executor-11:job-47) Seq 1-1843200414: Executing: { Cmd , MgmtId: > 206915885079359, via: 1, Ver: v1, Flags: 100111, > [{"com.cloud.agent.api.storage.CopyVolumeCommand":{"volumeId":16,"volumePath":"64bf190f-6e90-4fc1-86eb-5340c894e328","pool":{"id":1,"uuid":"e97b5727-d157-3dc1-b32c-065b99806623","host":"10.223.110.232","path":"/export/home/sangeetha/campo-systemp-1/primary","port":2049,"type":"NetworkFilesystem"},"secondaryStorageURL":"nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary","toSecondaryStorage":true,"wait":10800}}] > } > 2013-05-15 17:45:21,872 DEBUG [agent.transport.Request] > (Job-Executor-11:job-47) Seq 1-1843200414: Received: { Ans: , MgmtId: > 206915885079359, via: 1, Ver: v1, Flags: 110, { CopyVolumeAnswer } } > 2013-05-15 17:45:21,872 DEBUG [agent.manager.AgentAttache] > (DirectAgent-421:null) Seq 1-1843200414: No more commands found > 2013-05-15 17:45:21,964 ERROR [cloud.async.AsyncJobManagerImpl] > (Job-Executor-11:job-47) Unexpected exception while executing > org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd > java.lang.ClassCastException: > org.apache.cloudstack.storage.image.store.ImageStoreImpl cannot be cast to > org.apache.cloudstack.storage.datastore.db.ImageStoreVO > at > com.cloud.storage.upload.UploadMonitorImpl.createVolumeDownloadURL(UploadMonitorImpl.java:289) > at > com.cloud.server.ManagementServerImpl.extractVolume(ManagementServerImpl.java:3439) > at > com.cloud.utils.component.ComponentInstantiationPostProcesso