[ https://issues.apache.org/jira/browse/CLOUDSTACK-3470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736710#comment-13736710 ]
Kishan Kavala commented on CLOUDSTACK-3470: ------------------------------------------- CopyCommand is also used for volume migration between storage pools in the same cluster. VolumeMigration between pools in the same cluster is failing as a result. 2013-08-12 15:01:22,740 DEBUG [cloud.api.ApiServlet] (1318679555@qtp-1520914843-16:null) ===START=== 0:0:0:0:0:0:0:1 -- GET command=migrateVolume&livemigrate=false&storageid=c81a7053-7722-3341-bdaf-9bc53062b75d&volumeid=fb003e62-8688-4a2e-b6ed-1d81b226d923&response=json&sessionkey=hJ2H1UQxtuIy8AbDqgNVXQIgAIA%3D&_=1376299857901 2013-08-12 15:01:22,874 DEBUG [cloud.async.AsyncJobManagerImpl] (1318679555@qtp-1520914843-16:null) submit async job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ], details: AsyncJobVO {id:23, userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd, cmdOriginator: null, cmdInfo: {"response":"json","sessionkey":"hJ2H1UQxtuIy8AbDqgNVXQIgAIA\u003d","cmdEventType":"VOLUME.MIGRATE","ctxUserId":"2","storageid":"c81a7053-7722-3341-bdaf-9bc53062b75d","livemigrate":"false","httpmethod":"GET","volumeid":"fb003e62-8688-4a2e-b6ed-1d81b226d923","_":"1376299857901","ctxAccountId":"2","ctxStartEventId":"86"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 101318455136477, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2013-08-12 15:01:22,875 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-7:job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ]) Executing org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ] 2013-08-12 15:01:22,877 DEBUG [cloud.api.ApiServlet] (1318679555@qtp-1520914843-16:null) ===END=== 0:0:0:0:0:0:0:1 -- GET command=migrateVolume&livemigrate=false&storageid=c81a7053-7722-3341-bdaf-9bc53062b75d&volumeid=fb003e62-8688-4a2e-b6ed-1d81b226d923&response=json&sessionkey=hJ2H1UQxtuIy8AbDqgNVXQIgAIA%3D&_=1376299857901 2013-08-12 15:01:23,054 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-7:job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ]) copyAsync inspecting src type VOLUME copyAsync inspecting dest type VOLUME 2013-08-12 15:01:23,057 DEBUG [cache.allocator.StorageCacheRandomAllocator] (Job-Executor-7:job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ]) Can't find staging storage in zone: 1 2013-08-12 15:01:23,152 DEBUG [agent.transport.Request] (Job-Executor-7:job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ]) Seq 1-1679623037: Sending { Cmd , MgmtId: 101318455136477, via: 1, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"fb003e62-8688-4a2e-b6ed-1d81b226d923","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"4ef8642c-29a6-3a4f-ab8f-138f2f0ecbfb","id":3,"poolType":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/kishan/primary","port":2049}},"name":"ROOT-8","size":143360,"path":"02205a7a-d9b0-4462-acbd-4f6579bba9a0","volumeId":8,"vmName":"i-2-8-VM","accountId":2,"format":"QCOW2","id":8,"hypervisorType":"KVM"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"fb003e62-8688-4a2e-b6ed-1d81b226d923","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/kishan/secondary","_role":"Image"}},"name":"ROOT-8","size":143360,"path":"volumes/2/8","volumeId":8,"vmName":"i-2-8-VM","accountId":2,"format":"QCOW2","id":8,"hypervisorType":"KVM"}},"executeInSequence":false,"wait":10800}}] } 2013-08-12 15:01:23,157 DEBUG [agent.transport.Request] (AgentManager-Handler-15:null) Seq 1-1679623037: Processing: { Ans: , MgmtId: 101318455136477, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.UnsupportedAnswer":{"result":false,"details":"Unsupported command issued:org.apache.cloudstack.storage.command.CopyCommand. Are you sure you got the right type of server?","wait":0}}] } 2013-08-12 15:01:23,157 DEBUG [agent.transport.Request] (Job-Executor-7:job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ]) Seq 1-1679623037: Received: { Ans: , MgmtId: 101318455136477, via: 1, Ver: v1, Flags: 10, { UnsupportedAnswer } } 2013-08-12 15:01:23,157 WARN [agent.manager.AgentManagerImpl] (Job-Executor-7:job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ]) Unsupported Command: Unsupported command issued:org.apache.cloudstack.storage.command.CopyCommand. Are you sure you got the right type of server? 2013-08-12 15:01:23,157 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-7:job-23 = [ cf23f7dd-93fd-4e2a-a8e7-a3427edb8206 ]) copy to image store failed: Unsupported command issued:org.apache.cloudstack.storage.command.CopyCommand. Are you sure you got the right type of server? > [KVM] CopyCommand is not implemented in KVM > ------------------------------------------- > > Key: CLOUDSTACK-3470 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3470 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: API, KVM > Affects Versions: 4.2.0 > Reporter: Rajesh Battala > Assignee: Fang Wang > Priority: Blocker > Fix For: Future > > > while performing Volume Migrate from one ZWPS, to another ZWPS using KVM. > copyVolumeBetweenPools method is triggering the CopyCommand to copy the > volume from store to another. > This CopyCommand is sent to KVM Agent to execute the operation of copying > volume from Src Store to Dest Store. > Issue is: CopyCommand is not implemented in KVM Resouce, hence failing the > migration of Volumes > 2013-07-11 15:48:59,778 DEBUG [cloud.agent.Agent] > (agentRequest-Handler-5:null) Request:Seq 4-2091581770: { Cmd , MgmtId: > 235715300172635, via: 4, Ver: v1, Flags: 100111, > [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"63d241ad-d372-40fc-b770-7661902ff52d","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f0802731-62fe-3a85-b81a-98ae47e845cf","id":2,"poolType":"NetworkFilesystem","host":"10.102.192.100","path":"/cpg_vol/rajesh/zwps1","port":2049}},"name":"vol3","size":0,"path":"00ff0a7a-95a8-4809-a334-f8a0d9aa3db2","volumeId":13,"accountId":2,"format":"QCOW2","id":13}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"63d241ad-d372-40fc-b770-7661902ff52d","volumeType":"DATADISK","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/rajesh/secondary","_role":"Image"}},"name":"vol3","size":0,"path":"volumes/2/13","volumeId":13,"accountId":2,"format":"QCOW2","id":13}},"wait":10800}}] > } > 2013-07-11 15:48:59,778 DEBUG [cloud.agent.Agent] > (agentRequest-Handler-5:null) Processing command: > org.apache.cloudstack.storage.command.CopyCommand > 2013-07-11 15:48:59,778 DEBUG [cloud.agent.Agent] > (agentRequest-Handler-5:null) Response: unsupported > commandorg.apache.cloudstack.storage.command.CopyCommand > 2013-07-11 15:48:59,780 DEBUG [cloud.agent.Agent] > (agentRequest-Handler-5:null) Seq 4-2091581770: { Ans: , MgmtId: > 235715300172635, via: 4, Ver: v1, Flags: 110, > [{"com.cloud.agent.api.UnsupportedAnswer":{"result":false,"details":"Unsupported > command issued:org.apache.cloudstack.storage.command.CopyCommand. Are you > sure you got the right type of server?","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