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

Sudha Ponnaganti edited comment on CLOUDSTACK-1634 at 3/12/13 4:40 AM:
-----------------------------------------------------------------------

Mice, 
I have assigned this to you as you are original developer for this 
feature.Meanwhile if there is any workaround pl do provide that. 

thanks
/sudha
                
      was (Author: sudhap):
    Mice, 
I have assigned this to you as you are original developer for this feature.

thanks
/sudha
                  
> VMSnapshot: CreateVMSnapshotCmd fails due to due to java.util.ArrayList 
> cannot be cast to [Lcom.vmware.vim25.ManagedObjectReference
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1634
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1634
>             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
>            Reporter: Chandan Purushothama
>            Assignee: Mice Xia
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> ================
> Steps to Reproduce:
> ================
> 1. Deploy Vm. 
> 2. Log in to the Vm and create few directories and files.
> 3. Stop the VM.
> 4. Create VMSnapshot for this VM with "vm_snapshot_type" set to "Disk"
> ===========
> Observations:
> ===========
> *Though the Job Reported as success, Observe the log for the 
> java.util.ArrayList Error*
> 2013-03-11 19:07:22,164 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) 
> ===START===  10.216.133.69 -- GET  
> command=createVMSnapshot&virtualmachineid=a834397b-df67-4aab-bfc4-d6d0754cb44e&snapshotmemory=false&name=Boron-VM-1-FirstVMSnapshot&description=Boron-VM-1-FirstVMSnapshot&response=json&sessionkey=bhdO0pI5PnwMMPTId%2FJH1LUmVS4%3D&_=1363054060692
> 2013-03-11 19:07:22,181 DEBUG [cloud.user.AccountManagerImpl] 
> (catalina-exec-25:null) Access to Acct[3-boron] granted to Acct[3-boron] by 
> DomainChecker
> 2013-03-11 19:07:22,188 DEBUG [cloud.user.AccountManagerImpl] 
> (catalina-exec-25:null) Access to VM[User|boron-VM-1] granted to 
> Acct[3-boron] by DomainChecker
> 2013-03-11 19:07:22,270 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-25:null) submit async job-16, details: AsyncJobVO {id:16, 
> userId: 3, accountId: 3, sessionKey: null, instanceType: null, instanceId: 1, 
> cmd: org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd, 
> cmdOriginator: null, cmdInfo: 
> {"id":"1","response":"json","sessionkey":"bhdO0pI5PnwMMPTId/JH1LUmVS4\u003d","virtualmachineid":"a834397b-df67-4aab-bfc4-d6d0754cb44e","ctxUserId":"3","snapshotmemory":"false","description":"Boron-VM-1-FirstVMSnapshot","name":"Boron-VM-1-FirstVMSnapshot","_":"1363054060692","ctxAccountId":"3","ctxStartEventId":"23"},
>  cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
> processStatus: 0, resultCode: 0, result: null, initMsid: 7200344900649, 
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-03-11 19:07:22,271 DEBUG [cloud.api.ApiServlet] (catalina-exec-25:null) 
> ===END===  10.216.133.69 -- GET  
> command=createVMSnapshot&virtualmachineid=a834397b-df67-4aab-bfc4-d6d0754cb44e&snapshotmemory=false&name=Boron-VM-1-FirstVMSnapshot&description=Boron-VM-1-FirstVMSnapshot&response=json&sessionkey=bhdO0pI5PnwMMPTId%2FJH1LUmVS4%3D&_=1363054060692
> 2013-03-11 19:07:22,273 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-18:job-16) Executing 
> org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd for 
> job-16
> 2013-03-11 19:07:22,279 DEBUG [cloud.user.AccountManagerImpl] 
> (Job-Executor-18:job-16) Access to Acct[3-boron] granted to Acct[3-boron] by 
> DomainChecker
> 2013-03-11 19:07:22,314 DEBUG [agent.transport.Request] 
> (Job-Executor-18:job-16) Seq 1-566362171: Sending  { Cmd , MgmtId: 
> 7200344900649, via: 1, Ver: v1, Flags: 100011, 
> [{"CreateVMSnapshotCommand":{"vmState":"Stopped","volumeTOs":[{"id":3,"name":"ROOT-3","mountPoint":"/export/home/chandan/asf4-131-170/primary","path":"ROOT-3-3","size":2147483648,"type":"ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"f42a60c2-0940-305b-bb14-23d8b40f42bc","deviceId":0},{"id":4,"name":"DATA-3","mountPoint":"/export/home/chandan/asf4-131-170/primary","path":"49881aa64e8f4ee1a979e1971170ac0e","size":5368709120,"type":"DATADISK","storagePoolType":"NetworkFilesystem","storagePoolUuid":"f42a60c2-0940-305b-bb14-23d8b40f42bc","deviceId":1}],"target":{"id":1,"snapshotName":"i-3-3-VMSNAP_VS_20130312020722","type":"Disk","current":false,"description":"Boron-VM-1-FirstVMSnapshot"},"vmName":"i-3-3-VMSNAP","guestOSType":"CentOS
>  5.3 (64-bit)","wait":0}}] }
> 2013-03-11 19:07:22,315 DEBUG [agent.transport.Request] 
> (Job-Executor-18:job-16) Seq 1-566362171: Executing:  { Cmd , MgmtId: 
> 7200344900649, via: 1, Ver: v1, Flags: 100011, 
> [{"CreateVMSnapshotCommand":{"vmState":"Stopped","volumeTOs":[{"id":3,"name":"ROOT-3","mountPoint":"/export/home/chandan/asf4-131-170/primary","path":"ROOT-3-3","size":2147483648,"type":"ROOT","storagePoolType":"NetworkFilesystem","storagePoolUuid":"f42a60c2-0940-305b-bb14-23d8b40f42bc","deviceId":0},{"id":4,"name":"DATA-3","mountPoint":"/export/home/chandan/asf4-131-170/primary","path":"49881aa64e8f4ee1a979e1971170ac0e","size":5368709120,"type":"DATADISK","storagePoolType":"NetworkFilesystem","storagePoolUuid":"f42a60c2-0940-305b-bb14-23d8b40f42bc","deviceId":1}],"target":{"id":1,"snapshotName":"i-3-3-VMSNAP_VS_20130312020722","type":"Disk","current":false,"description":"Boron-VM-1-FirstVMSnapshot"},"vmName":"i-3-3-VMSNAP","guestOSType":"CentOS
>  5.3 (64-bit)","wait":0}}] }
> 2013-03-11 19:07:22,315 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-8:null) Seq 1-566362171: Executing request
> 2013-03-11 19:07:22,363 ERROR [vmware.manager.VmwareStorageManagerImpl] 
> (DirectAgent-8:10.223.58.2) failed to create snapshot for vm:i-3-3-VMSNAP due 
> to java.util.ArrayList cannot be cast to 
> [Lcom.vmware.vim25.ManagedObjectReference;
> 2013-03-11 19:07:22,364 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-8:null) Seq 1-566362171: Response Received:
> 2013-03-11 19:07:22,364 DEBUG [agent.transport.Request] (DirectAgent-8:null) 
> Seq 1-566362171: Processing:  { Ans: , MgmtId: 7200344900649, via: 1, Ver: 
> v1, Flags: 10, 
> [{"CreateVMSnapshotAnswer":{"result":false,"details":"java.util.ArrayList 
> cannot be cast to [Lcom.vmware.vim25.ManagedObjectReference;","wait":0}}] }
> 2013-03-11 19:07:22,364 DEBUG [agent.transport.Request] 
> (Job-Executor-18:job-16) Seq 1-566362171: Received:  { Ans: , MgmtId: 
> 7200344900649, via: 1, Ver: v1, Flags: 10, { CreateVMSnapshotAnswer } }
> 2013-03-11 19:07:22,365 ERROR [vm.snapshot.VMSnapshotManagerImpl] 
> (Job-Executor-18:job-16) Agent reports creating vm snapshot 
> i-3-3-VMSNAP_VS_20130312020722 failed for vm: i-3-3-VMSNAP due to 
> java.util.ArrayList cannot be cast to 
> [Lcom.vmware.vim25.ManagedObjectReference;
> 2013-03-11 19:07:22,372 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-18:job-16) Complete async job-16, jobStatus: 1, resultCode: 0, 
> result: org.apache.cloudstack.api.response.VMSnapshotResponse@383586e9
> 2013-03-11 19:07:22,377 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-18:job-16) Done executing 
> org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd for 
> job-16
> ==========
> Bug Impact:
> ==========
> Blocks VMSnapshot Feature

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