You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "manasaveloori (JIRA)" <ji...@apache.org> on 2013/07/18 10:56:48 UTC

[jira] [Created] (CLOUDSTACK-3629) [Storage]Migration of root disk from shared primary storage to another shared primary storage is throwing NPE.

manasaveloori created CLOUDSTACK-3629:
-----------------------------------------

             Summary: [Storage]Migration of root disk from shared primary storage to another shared primary storage is throwing NPE.
                 Key: CLOUDSTACK-3629
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3629
             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: latest 4.2 build
            Reporter: manasaveloori
            Priority: Critical
             Fix For: 4.2.0
         Attachments: management-server.zip

Steps:

1.	Have a CS with advanced zone and VMware hypervisor.
2.	Create 2 shared cluster wide primary storages and a local storage.
3.	Create an instance using shared storage.
4.	Now 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:job-115 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) Seq 3-357564564: Sending  { Cmd , MgmtId: 7562229448750, via: 3, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"3a388fa2-0db1-4288-a38f-dd4795ccb8f6","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"17b16be4-3bd2-34c7-b4d5-cb7a84dc8cdd","id":2,"poolType":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/manasa/primaryVMw/newpri","port":2049}},"name":"ROOT-16","size":0,"path":"ROOT-16-20","volumeId":20,"vmName":"i-2-16-VM","accountId":2,"format":"OVA","id":20}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"3a388fa2-0db1-4288-a38f-dd4795ccb8f6","volumeType":"ROOT","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/manasa/secondaryVMw/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] (DirectAgent-333:null) Seq 4-549978551: Executing request
2013-07-18 18:56:28,797 DEBUG [vmware.resource.VmwareResource] (DirectAgent-333:10.147.40.18) Datastore summary info, storageId: dec3649b-74c1-348e-b897-cbf4aedc1f03, localPath: /export/home/manasa/primaryVMw/newpri1, poolType: NetworkFilesystem, capacity: 5902284800000, free: 2051742019584, used: 3850542780416
2013-07-18 18:56:28,798 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-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-Handler-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(VmwareSecondaryStorageResourceHandler.java:105)\n\tat com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:56)\n\tat com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat com.cloud.utils.nio.Task.run(Task.java:83)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\n\tat java.util.concurrent.ThreadPoolExecutor$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 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) Seq 3-357564564: Received:  { 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 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) copy to image store failed: java.lang.NullPointerException
        at com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequest(VmwareSecondaryStorageResourceHandler.java:105)
        at com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(PremiumSecondaryStorageResource.java:56)
        at com.cloud.agent.Agent.processRequest(Agent.java:525)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)
        at com.cloud.utils.nio.Task.run(Task.java:83)
        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)

2013-07-18 18:56:29,649 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-42:job-115 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) copy failed
java.lang.NullPointerException
        at org.apache.cloudstack.storage.volume.VolumeObject.getPath(VolumeObject.java:339)
        at org.apache.cloudstack.storage.to.VolumeObjectTO.<init>(VolumeObjectTO.java:51)
        at org.apache.cloudstack.storage.volume.VolumeObject.getTO(VolumeObject.java:461)
        at org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.deleteAsync(BaseImageStoreDriverImpl.java:213)
        at org.apache.cloudstack.storage.image.store.ImageStoreImpl.delete(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.copyAsync(DataMotionServiceImpl.java:55)
        at org.apache.cloudstack.storage.volume.VolumeServiceImpl.migrateVolume(VolumeServiceImpl.java:818)
        at com.cloud.storage.VolumeManagerImpl.liveMigrateVolume(VolumeManagerImpl.java:2213)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl.java:2183)
        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:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2013-07-18 18:56:29,664 WARN  [storage.datastore.ObjectInDataStoreManagerImpl] (Job-Executor-42:job-115 = [ 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-Executor-42:job-115 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) migrate volume failed:java.lang.NullPointerException
2013-07-18 18:56:29,667 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-42:job-115 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ]) Complete async job-115 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ], jobStatus: 2, resultCode: 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:null) ===START===  10.252.192.69 -- GET  command=queryAsyncJobResult&jobId=0d97cf94-37d4-41fd-8640-2a490aff6bc9&response=json&sessionkey=%2BaQLExaoaIr64YjXYR008EoMPkw%3D&_=1374134478242
2013-07-18 18:56:31,528 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-17:null) Async job-115 = [ 0d97cf94-37d4-41fd-8640-2a490aff6bc9 ] completed
2013-07-18 18:56:31,537 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===  10.252.192.69 -- GET  command=queryAsyncJobResult&jobId=0d97cf94-37d4-41fd-8640-2a490aff6bc9&response=json&sessionkey=%2BaQLExaoaIr64YjXYR008EoMPkw%3D&_=1374134478


Attached the MS logs


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