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

Rajesh Battala commented on CLOUDSTACK-3943:
--------------------------------------------

got fixed with commit 4cd76b5a9937164283349bb628f2f606aeab28e5
                
> [KVM] [Zone Wide Primary Storages] migrateVolume is failing with NPE
> --------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3943
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3943
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.0
>         Environment: commit # 6275d697e340be5b520f37b15d72343fa47c00a9
>            Reporter: venkata swamybabu budumuru
>            Assignee: Rajesh Battala
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: logs.tgz
>
>
> Steps to reproduce :
> 1. Have at least one advanced zone with KVM cluster (2 kvm hosts)
> 2. Make sure that the setup has at least 2 zone wide primary storages. (from 
> ex: zwps1, zwps2)
> 3. Deploy a VM as admin
> 4. Create a datadisk of size 5 GB as admin on zwps1
> 5. attach the above datadisk to the VM in step 3
> 6. detach the data disk
> 7. initiate migrateVolume command for the above datadisk to zwps2
> Observations:
> (i) Found the following NPE in mgmt server logs
> 2013-07-30 15:37:50,993 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
> ===END===  10.252.192.25 -- GET  
> command=migrateVolume&storageid=94634fe1-55f7-3fa8-aad9-5adc25246072&volumeid=8e27413a-9904-4b04-88e2-4646f9e2012e&response=json&sessionkey=%2BzLNhLsWep0480hDIw1Pq1TaL%2FY%3D&_=1375178879961
> 2013-07-30 15:37:50,996 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Executing 
> org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-39 = [ 
> c3f2420d-83a4-4610-b364-df41a35aa86d ]
> 2013-07-30 15:37:51,052 DEBUG [storage.motion.AncientDataMotionStrategy] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) copyAsync 
> inspecting src type VOLUME copyAsync inspecting dest type VOLUME
> 2013-07-30 15:37:51,056 DEBUG [cache.allocator.StorageCacheRandomAllocator] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Can't 
> find staging storage in zone: 1
> 2013-07-30 15:37:51,096 DEBUG [agent.transport.Request] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Seq 
> 3-46924267: Sending  { Cmd , MgmtId: 7280707764394, via: 3, Ver: v1, Flags: 
> 100011, 
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"8e27413a-9904-4b04-88e2-4646f9e2012e","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"5458182e-bfcb-351c-97ed-e7223bca2b8e","id":1,"poolType":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/swamy/primary.campo.kvm.1.zone","port":2049}},"name":"adminDataDisk2","size":0,"path":"a8923a0d-401c-453a-bf77-0e4496711f0d","volumeId":13,"accountId":2,"format":"QCOW2","id":13,"hypervisorType":"None"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"8e27413a-9904-4b04-88e2-4646f9e2012e","volumeType":"DATADISK","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/swamy/secondary.campo.kvm.1","_role":"Image"}},"name":"adminDataDisk2","size":0,"path":"volumes/2/13","volumeId":13,"accountId":2,"format":"QCOW2","id":13,"hypervisorType":"None"}},"executeInSequence":false,"wait":10800}}]
>  }
> 2013-07-30 15:37:51,142 DEBUG [agent.transport.Request] 
> (AgentManager-Handler-5:null) Seq 3-46924267: Processing:  { Ans: , MgmtId: 
> 7280707764394, via: 3, 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-07-30 15:37:51,143 DEBUG [agent.transport.Request] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Seq 
> 3-46924267: Received:  { Ans: , MgmtId: 7280707764394, via: 3, Ver: v1, 
> Flags: 10, { UnsupportedAnswer } }
> 2013-07-30 15:37:51,143 WARN  [agent.manager.AgentManagerImpl] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) 
> Unsupported Command: Unsupported command 
> issued:org.apache.cloudstack.storage.command.CopyCommand.  Are you sure you 
> got the right type of server?
> 2013-07-30 15:37:51,152 DEBUG [storage.motion.AncientDataMotionStrategy] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) copy to 
> image store failed: Unsupported command 
> issued:org.apache.cloudstack.storage.command.CopyCommand.  Are you sure you 
> got the right type of server?
> 2013-07-30 15:37:51,185 DEBUG [storage.image.BaseImageStoreDriverImpl] 
> (Job-Executor-39:job-39 = [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Unable to 
> destoy VOLUME: 13
> java.lang.NullPointerException
>       at 
> org.apache.cloudstack.storage.volume.VolumeObject.getPath(VolumeObject.java:338)
>       at 
> org.apache.cloudstack.storage.to.VolumeObjectTO.<init>(VolumeObjectTO.java:53)
>       at 
> org.apache.cloudstack.storage.volume.VolumeObject.getTO(VolumeObject.java:460)
>       at 
> org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.deleteAsync(BaseImageStoreDriverImpl.java:225)
>       at 
> org.apache.cloudstack.storage.image.store.ImageStoreImpl.delete(ImageStoreImpl.java:148)
>       at 
> org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyVolumeBetweenPools(AncientDataMotionStrategy.java:302)
>       at 
> org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAsync(AncientDataMotionStrategy.java:381)
>       at 
> org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:55)
>       at 
> org.apache.cloudstack.storage.volume.VolumeServiceImpl.copyVolume(VolumeServiceImpl.java:782)
>       at 
> com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl.java:2210)
>       at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>       at 
> com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl.java:2202)
>       at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>       at 
> org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd.execute(MigrateVolumeCmd.java:102)
>       at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>       at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>       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:1146)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:679)

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