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 233C310E02 for ; Tue, 30 Jul 2013 11:25:59 +0000 (UTC) Received: (qmail 34729 invoked by uid 500); 30 Jul 2013 11:25:57 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 34531 invoked by uid 500); 30 Jul 2013 11:25:55 -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 34466 invoked by uid 500); 30 Jul 2013 11:25:54 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 34404 invoked by uid 99); 30 Jul 2013 11:25:51 -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 11:25:51 +0000 Date: Tue, 30 Jul 2013 11:25:51 +0000 (UTC) From: "venkata swamybabu budumuru (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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 [ https://issues.apache.org/jira/browse/CLOUDSTACK-3943?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] venkata swamybabu budumuru updated CLOUDSTACK-3943: --------------------------------------------------- Environment: commit # 6275d697e340be5b520f37b15d72343fa47c00a9 =20 > [KVM] [Zone Wide Primary Storages] migrateVolume is failing with NPE > -------------------------------------------------------------------- > > Key: CLOUDSTACK-3943 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-394= 3 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Storage Controller > Affects Versions: 4.2.0 > Environment: commit # 6275d697e340be5b520f37b15d72343fa47c00a9 > Reporter: venkata swamybabu budumuru > 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. (f= rom 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:nu= ll) =3D=3D=3DEND=3D=3D=3D 10.252.192.25 -- GET command=3DmigrateVolume&st= orageid=3D94634fe1-55f7-3fa8-aad9-5adc25246072&volumeid=3D8e27413a-9904-4b0= 4-88e2-4646f9e2012e&response=3Djson&sessionkey=3D%2BzLNhLsWep0480hDIw1Pq1Ta= L%2FY%3D&_=3D1375178879961 > 2013-07-30 15:37:50,996 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Executing org.= apache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-39 =3D [= c3f2420d-83a4-4610-b364-df41a35aa86d ] > 2013-07-30 15:37:51,052 DEBUG [storage.motion.AncientDataMotionStrategy] = (Job-Executor-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) copyA= sync inspecting src type VOLUME copyAsync inspecting dest type VOLUME > 2013-07-30 15:37:51,056 DEBUG [cache.allocator.StorageCacheRandomAllocato= r] (Job-Executor-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Ca= n't find staging storage in zone: 1 > 2013-07-30 15:37:51,096 DEBUG [agent.transport.Request] (Job-Executor-39:= job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Seq 3-46924267: Sendin= g { Cmd , MgmtId: 7280707764394, via: 3, Ver: v1, Flags: 100011, [{"org.ap= ache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudsta= ck.storage.to.VolumeObjectTO":{"uuid":"8e27413a-9904-4b04-88e2-4646f9e2012e= ","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.Pr= imaryDataStoreTO":{"uuid":"5458182e-bfcb-351c-97ed-e7223bca2b8e","id":1,"po= olType":"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,"f= ormat":"QCOW2","id":13,"hypervisorType":"None"}},"destTO":{"org.apache.clou= dstack.storage.to.VolumeObjectTO":{"uuid":"8e27413a-9904-4b04-88e2-4646f9e2= 012e","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"}},"execu= teInSequence":false,"wait":10800}}] } > 2013-07-30 15:37:51,142 DEBUG [agent.transport.Request] (AgentManager-Han= dler-5:null) Seq 3-46924267: Processing: { Ans: , MgmtId: 7280707764394, v= ia: 3, Ver: v1, Flags: 10, [{"com.cloud.agent.api.UnsupportedAnswer":{"resu= lt":false,"details":"Unsupported command issued:org.apache.cloudstack.stora= ge.command.CopyCommand. Are you sure you got the right type of server?","w= ait":0}}] } > 2013-07-30 15:37:51,143 DEBUG [agent.transport.Request] (Job-Executor-39:= job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Seq 3-46924267: Receiv= ed: { Ans: , MgmtId: 7280707764394, via: 3, Ver: v1, Flags: 10, { Unsuppor= tedAnswer } } > 2013-07-30 15:37:51,143 WARN [agent.manager.AgentManagerImpl] (Job-Execu= tor-39:job-39 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) Unsupported Com= mand: Unsupported command issued:org.apache.cloudstack.storage.command.Copy= Command. 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 =3D [ c3f2420d-83a4-4610-b364-df41a35aa86d ]) copy = to image store failed: Unsupported command issued:org.apache.cloudstack.sto= rage.command.CopyCommand. Are you sure you got the right type of server? > 2013-07-30 15:37:51,185 DEBUG [storage.image.BaseImageStoreDriverImpl] (J= ob-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(VolumeObj= ect.java:338) > =09at org.apache.cloudstack.storage.to.VolumeObjectTO.(VolumeObject= TO.java:53) > =09at org.apache.cloudstack.storage.volume.VolumeObject.getTO(VolumeObjec= t.java:460) > =09at org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.delete= Async(BaseImageStoreDriverImpl.java:225) > =09at org.apache.cloudstack.storage.image.store.ImageStoreImpl.delete(Ima= geStoreImpl.java:148) > =09at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copy= VolumeBetweenPools(AncientDataMotionStrategy.java:302) > =09at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copy= Async(AncientDataMotionStrategy.java:381) > =09at org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsyn= c(DataMotionServiceImpl.java:55) > =09at org.apache.cloudstack.storage.volume.VolumeServiceImpl.copyVolume(V= olumeServiceImpl.java:782) > =09at com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl= .java:2210) > =09at com.cloud.utils.component.ComponentInstantiationPostProcessor$Inter= ceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > =09at com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl= .java:2202) > =09at com.cloud.utils.component.ComponentInstantiationPostProcessor$Inter= ceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > =09at org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd.exec= ute(MigrateVolumeCmd.java:102) > =09at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158) > =09at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:= 531) > =09at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:= 471) > =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(ThreadPoolExecuto= r.java:1146) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.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