Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6F4210CB4 for ; Tue, 30 Jul 2013 10:35:55 +0000 (UTC) Received: (qmail 71091 invoked by uid 500); 30 Jul 2013 10:35:53 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 71058 invoked by uid 500); 30 Jul 2013 10:35:51 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 71048 invoked by uid 500); 30 Jul 2013 10:35:50 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 71043 invoked by uid 99); 30 Jul 2013 10:35:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 10:35:49 +0000 Date: Tue, 30 Jul 2013 10:35:49 +0000 (UTC) From: "venkata swamybabu budumuru (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-3943) [KVM] [Zone Wide Primary Storages] migrateVolume is failing with NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 venkata swamybabu budumuru created CLOUDSTACK-3943: ------------------------------------------------------ Summary: [KVM] [Zone Wide Primary Storages] migrateVolume is f= ailing 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 defa= ult.) Components: Storage Controller Affects Versions: 4.2.0 Reporter: venkata swamybabu budumuru Priority: Critical Fix For: 4.2.0 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. (fro= m 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= ) =3D=3D=3DEND=3D=3D=3D 10.252.192.25 -- GET command=3DmigrateVolume&stor= ageid=3D94634fe1-55f7-3fa8-aad9-5adc25246072&volumeid=3D8e27413a-9904-4b04-= 88e2-4646f9e2012e&response=3Djson&sessionkey=3D%2BzLNhLsWep0480hDIw1Pq1TaL%= 2FY%3D&_=3D1375178879961 2013-07-30 15:37:50,996 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Execut= or-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Executing org.ap= ache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-39 =3D [ c= 3f2420d-83a4-4610-b364-df41a35aa86d ] 2013-07-30 15:37:51,052 DEBUG [storage.motion.AncientDataMotionStrategy] (J= ob-Executor-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) copyAsy= nc 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 =3D [ 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:jo= b-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Seq 3-46924267: Sending = { Cmd , MgmtId: 7280707764394, via: 3, Ver: v1, Flags: 100011, [{"org.apac= he.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.Prim= aryDataStoreTO":{"uuid":"5458182e-bfcb-351c-97ed-e7223bca2b8e","id":1,"pool= Type":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/swamy/p= rimary.campo.kvm.1.zone","port":2049}},"name":"adminDataDisk2","size":0,"pa= th":"a8923a0d-401c-453a-bf77-0e4496711f0d","volumeId":13,"accountId":2,"for= mat":"QCOW2","id":13,"hypervisorType":"None"}},"destTO":{"org.apache.clouds= tack.storage.to.VolumeObjectTO":{"uuid":"8e27413a-9904-4b04-88e2-4646f9e201= 2e","volumeType":"DATADISK","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_= url":"nfs://10.147.28.7/export/home/swamy/secondary.campo.kvm.1","_role":"I= mage"}},"name":"adminDataDisk2","size":0,"path":"volumes/2/13","volumeId":1= 3,"accountId":2,"format":"QCOW2","id":13,"hypervisorType":"None"}},"execute= InSequence":false,"wait":10800}}] } 2013-07-30 15:37:51,142 DEBUG [agent.transport.Request] (AgentManager-Handl= er-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?","wai= t":0}}] } 2013-07-30 15:37:51,143 DEBUG [agent.transport.Request] (Job-Executor-39:jo= b-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Seq 3-46924267: Received= : { Ans: , MgmtId: 7280707764394, via: 3, Ver: v1, Flags: 10, { Unsupporte= dAnswer } } 2013-07-30 15:37:51,143 WARN [agent.manager.AgentManagerImpl] (Job-Executo= r-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Unsupported Comma= nd: Unsupported command issued:org.apache.cloudstack.storage.command.CopyCo= mmand. Are you sure you got the right type of server? 2013-07-30 15:37:51,152 DEBUG [storage.motion.AncientDataMotionStrategy] (J= ob-Executor-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) copy to= image store failed: Unsupported command issued:org.apache.cloudstack.stora= ge.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 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Unable to= destoy VOLUME: 13 java.lang.NullPointerException =09at org.apache.cloudstack.storage.volume.VolumeObject.getPath(VolumeObjec= t.java:338) =09at org.apache.cloudstack.storage.to.VolumeObjectTO.(VolumeObjectTO= .java:53) =09at org.apache.cloudstack.storage.volume.VolumeObject.getTO(VolumeObject.= java:460) =09at org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.deleteAs= ync(BaseImageStoreDriverImpl.java:225) =09at org.apache.cloudstack.storage.image.store.ImageStoreImpl.delete(Image= StoreImpl.java:148) =09at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyVo= lumeBetweenPools(AncientDataMotionStrategy.java:302) =09at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAs= ync(AncientDataMotionStrategy.java:381) =09at org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(= DataMotionServiceImpl.java:55) =09at org.apache.cloudstack.storage.volume.VolumeServiceImpl.copyVolume(Vol= umeServiceImpl.java:782) =09at com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl.j= ava:2210) =09at com.cloud.utils.component.ComponentInstantiationPostProcessor$Interce= ptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) =09at com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl.j= ava:2202) =09at com.cloud.utils.component.ComponentInstantiationPostProcessor$Interce= ptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) =09at org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd.execut= e(MigrateVolumeCmd.java:102) =09at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) =09at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:53= 1) =09at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47= 1) =09at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) =09at java.util.concurrent.FutureTask.run(FutureTask.java:166) =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.= java:1146) =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor= .java:615) =09at 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 administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira