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 DF402CC11 for ; Fri, 19 Jul 2013 18:28:49 +0000 (UTC) Received: (qmail 96383 invoked by uid 500); 19 Jul 2013 18:28:49 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 96303 invoked by uid 500); 19 Jul 2013 18:28:49 -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 96293 invoked by uid 500); 19 Jul 2013 18:28:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 96285 invoked by uid 99); 19 Jul 2013 18:28:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 18:28:49 +0000 Date: Fri, 19 Jul 2013 18:28:49 +0000 (UTC) From: "Animesh Chaturvedi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-3629) [Storage]Migration of root disk from shared primary storage to another shared primary storage is throwing 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-3629?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Animesh Chaturvedi updated CLOUDSTACK-3629: ------------------------------------------- Assignee: edison su =20 > [Storage]Migration of root disk from shared primary storage to another sh= ared primary storage is throwing NPE. > -------------------------------------------------------------------------= ------------------------------------- > > Key: CLOUDSTACK-3629 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-362= 9 > 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: latest 4.2 build > Reporter: manasaveloori > Assignee: edison su > Priority: Critical > Fix For: 4.2.0 > > Attachments: management-server.zip > > > Steps: > 1.=09Have a CS with advanced zone and VMware hypervisor. > 2.=09Create 2 shared cluster wide primary storages and a local storage. > 3.=09Create an instance using shared storage. > 4.=09Now migrate the root volume to another shared storage. > Observed the following NPE. > 013-07-18 18:56:28,762 DEBUG [agent.transport.Request] (Job-Executor-42:j= ob-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) Seq 3-357564564: Sendi= ng { Cmd , MgmtId: 7562229448750, via: 3, Ver: v1, Flags: 100011, [{"org.a= pache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudst= ack.storage.to.VolumeObjectTO":{"uuid":"3a388fa2-0db1-4288-a38f-dd4795ccb8f= 6","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.Prima= ryDataStoreTO":{"uuid":"17b16be4-3bd2-34c7-b4d5-cb7a84dc8cdd","id":2,"poolT= ype":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/manasa/p= rimaryVMw/newpri","port":2049}},"name":"ROOT-16","size":0,"path":"ROOT-16-2= 0","volumeId":20,"vmName":"i-2-16-VM","accountId":2,"format":"OVA","id":20}= },"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"3a38= 8fa2-0db1-4288-a38f-dd4795ccb8f6","volumeType":"ROOT","dataStore":{"com.clo= ud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/manasa/second= aryVMw/newsec","_role":"Image"}},"name":"ROOT-16","size":0,"path":"volumes/= 2/20","volumeId":20,"vmName":"i-2-16-VM","accountId":2,"format":"OVA","id":= 20}},"executeInSequence":false,"wait":10800}}] } > 2013-07-18 18:56:28,769 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-333:null) Seq 4-549978551: Executing request > 2013-07-18 18:56:28,797 DEBUG [vmware.resource.VmwareResource] (DirectAge= nt-333:10.147.40.18) Datastore summary info, storageId: dec3649b-74c1-348e-= b897-cbf4aedc1f03, localPath: /export/home/manasa/primaryVMw/newpri1, poolT= ype: NetworkFilesystem, capacity: 5902284800000, free: 2051742019584, used:= 3850542780416 > 2013-07-18 18:56:28,798 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-333:null) Seq 4-549978551: Response Received: > 2013-07-18 18:56:28,799 DEBUG [agent.transport.Request] (StatsCollector-1= :null) Seq 4-549978551: Received: { Ans: , MgmtId: 7562229448750, via: 4, = Ver: v1, Flags: 10, { GetStorageStatsAnswer } } > 2013-07-18 18:56:29,624 DEBUG [agent.transport.Request] (AgentManager-Han= dler-7:null) Seq 3-357564564: Processing: { Ans: , MgmtId: 7562229448750, = via: 3, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false,= "details":"java.lang.NullPointerException\n\tat com.cloud.storage.resource.= VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorage= ResourceHandler.java:105)\n\tat com.cloud.storage.resource.PremiumSecondary= StorageResource.executeRequest(PremiumSecondaryStorageResource.java:56)\n\t= at com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat com.cloud.age= nt.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat com.cloud.utils.n= io.Task.run(Task.java:83)\n\tat java.util.concurrent.ThreadPoolExecutor.run= Worker(ThreadPoolExecutor.java:1146)\n\tat java.util.concurrent.ThreadPoolE= xecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(= Thread.java:679)\n","wait":0}}] } > 2013-07-18 18:56:29,625 DEBUG [agent.transport.Request] (Job-Executor-42:= job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) Seq 3-357564564: Rece= ived: { Ans: , MgmtId: 7562229448750, via: 3, Ver: v1, Flags: 10, { Answer= } } > 2013-07-18 18:56:29,625 DEBUG [storage.motion.AncientDataMotionStrategy] = (Job-Executor-42:job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) copy= to image store failed: java.lang.NullPointerException > at com.cloud.storage.resource.VmwareSecondaryStorageResourceHandl= er.executeRequest(VmwareSecondaryStorageResourceHandler.java:105) > at com.cloud.storage.resource.PremiumSecondaryStorageResource.exe= cuteRequest(PremiumSecondaryStorageResource.java:56) > at com.cloud.agent.Agent.processRequest(Agent.java:525) > at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:85= 2) > at com.cloud.utils.nio.Task.run(Task.java:83) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:615) > at java.lang.Thread.run(Thread.java:679) > 2013-07-18 18:56:29,649 DEBUG [storage.motion.AncientDataMotionStrategy] = (Job-Executor-42:job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) copy= failed > java.lang.NullPointerException > at org.apache.cloudstack.storage.volume.VolumeObject.getPath(Volu= meObject.java:339) > at org.apache.cloudstack.storage.to.VolumeObjectTO.(VolumeO= bjectTO.java:51) > at org.apache.cloudstack.storage.volume.VolumeObject.getTO(Volume= Object.java:461) > at org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.d= eleteAsync(BaseImageStoreDriverImpl.java:213) > at org.apache.cloudstack.storage.image.store.ImageStoreImpl.delet= e(ImageStoreImpl.java:148) > at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy= .copyVolumeBetweenPools(AncientDataMotionStrategy.java:299) > at org.apache.cloudstack.storage.motion.AncientDataMotionStrategy= .copyAsync(AncientDataMotionStrategy.java:350) > at org.apache.cloudstack.storage.motion.DataMotionServiceImpl.cop= yAsync(DataMotionServiceImpl.java:55) > at org.apache.cloudstack.storage.volume.VolumeServiceImpl.migrate= Volume(VolumeServiceImpl.java:818) > at com.cloud.storage.VolumeManagerImpl.liveMigrateVolume(VolumeMa= nagerImpl.java:2213) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$= InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:12= 5) > at com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManage= rImpl.java:2183) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$= InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:12= 5) > 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(ThreadPoolEx= ecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-07-18 18:56:29,664 WARN [storage.datastore.ObjectInDataStoreManager= Impl] (Job-Executor-42:job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]= ) Unsupported data object (VOLUME, org.apache.cloudstack.storage.datastore.= PrimaryDataStoreImpl@5978b775) > 2013-07-18 18:56:29,664 DEBUG [cloud.storage.VolumeManagerImpl] (Job-Exec= utor-42:job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) migrate volum= e failed:java.lang.NullPointerException > 2013-07-18 18:56:29,667 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-42:job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) Complete asyn= c job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ], jobStatus: 2, resul= tCode: 530, result: Error Code: 530 Error text: Failed to migrate volume > 2013-07-18 18:56:31,506 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:nu= ll) =3D=3D=3DSTART=3D=3D=3D 10.252.192.69 -- GET command=3DqueryAsyncJobR= esult&jobId=3D0d97cf94-37d4-41fd-8640-2a490aff6bc9&response=3Djson&sessionk= ey=3D%2BaQLExaoaIr64YjXYR008EoMPkw%3D&_=3D1374134478242 > 2013-07-18 18:56:31,528 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina= -exec-17:null) Async job-115 =3D [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ] c= ompleted > 2013-07-18 18:56:31,537 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:nu= ll) =3D=3D=3DEND=3D=3D=3D 10.252.192.69 -- GET command=3DqueryAsyncJobRes= ult&jobId=3D0d97cf94-37d4-41fd-8640-2a490aff6bc9&response=3Djson&sessionkey= =3D%2BaQLExaoaIr64YjXYR008EoMPkw%3D&_=3D1374134478 > Attached the MS logs -- 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