[
https://issues.apache.org/jira/browse/CLOUDSTACK-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Srikanteswararao Talluri reopened CLOUDSTACK-2304:
--------------------------------------------------
i am hitting the following error
===START=== 10.101.255.7 -- GET
command=migrateVolume&storageid=43a95e23-1ad6-30a9-9903-f68231dacec5&volumeid=5a4932d3-b3d4-42a4-b518-faf8a872c8f3&response=json&sessionkey=tDwCkKdMaI4eN0nCCR3dI8G2cVc%3D&_=1376377190280
2013-08-13 12:29:36,042 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-16:null) submit async job-183 = [
eea99f06-2a42-463a-bbe9-883f24baa7e0 ], details: AsyncJobVO {id:183, userId: 2,
accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd:
org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd, cmdOriginator:
null, cmdInfo:
{"response":"json","sessionkey":"tDwCkKdMaI4eN0nCCR3dI8G2cVc\u003d","cmdEventType":"VOLUME.MIGRATE","ctxUserId":"2","storageid":"43a95e23-1ad6-30a9-9903-f68231dacec5","httpmethod":"GET","volumeid":"5a4932d3-b3d4-42a4-b518-faf8a872c8f3","_":"1376377190280","ctxAccountId":"2","ctxStartEventId":"804"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 7280707764394,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-08-13 12:29:36,044 DEBUG [cloud.api.ApiServlet] (catalina-exec-16:null)
===END=== 10.101.255.7 -- GET
command=migrateVolume&storageid=43a95e23-1ad6-30a9-9903-f68231dacec5&volumeid=5a4932d3-b3d4-42a4-b518-faf8a872c8f3&response=json&sessionkey=tDwCkKdMaI4eN0nCCR3dI8G2cVc%3D&_=1376377190280
2013-08-13 12:29:36,047 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) Executing
org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-183 = [
eea99f06-2a42-463a-bbe9-883f24baa7e0 ]
2013-08-13 12:29:36,107 DEBUG [storage.motion.AncientDataMotionStrategy]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) copyAsync
inspecting src type VOLUME copyAsync inspecting dest type VOLUME
2013-08-13 12:29:36,112 DEBUG [cache.allocator.StorageCacheRandomAllocator]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) Can't find
staging storage in zone: 3
2013-08-13 12:29:36,170 DEBUG [agent.transport.Request]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) Seq
14-749145552: Sending { Cmd , MgmtId: 7280707764394, via: 14, Ver: v1, Flags:
100011,
[{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"5a4932d3-b3d4-42a4-b518-faf8a872c8f3","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"4e612995-3cb1-344e-ba19-3992e3d37d3f","id":207,"poolType":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/swamy/test1","port":2049}},"name":"DATA-35","size":10737418240,"path":"408c7eb1-e00b-4b53-97e1-0a4ed790ea52","volumeId":54,"accountId":2,"format":"QCOW2","id":54,"hypervisorType":"KVM"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"5a4932d3-b3d4-42a4-b518-faf8a872c8f3","volumeType":"DATADISK","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/swamy/secondary.3.0.7.kvm.1","_role":"Image"}},"name":"DATA-35","size":10737418240,"path":"volumes/2/54","volumeId":54,"accountId":2,"format":"QCOW2","id":54,"hypervisorType":"KVM"}},"executeInSequence":false,"wait":10800}}]
}
2013-08-13 12:29:36,175 DEBUG [agent.transport.Request]
(AgentManager-Handler-9:null) Seq 14-749145552: Processing: { Ans: , MgmtId:
7280707764394, via: 14, 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-08-13 12:29:36,176 DEBUG [agent.transport.Request]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) Seq
14-749145552: Received: { Ans: , MgmtId: 7280707764394, via: 14, Ver: v1,
Flags: 10, { UnsupportedAnswer } }
2013-08-13 12:29:36,176 WARN [agent.manager.AgentManagerImpl]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ])
Unsupported Command: Unsupported command
issued:org.apache.cloudstack.storage.command.CopyCommand. Are you sure you got
the right type of server?
2013-08-13 12:29:36,187 DEBUG [storage.motion.AncientDataMotionStrategy]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) 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-08-13 12:29:36,218 DEBUG [storage.image.BaseImageStoreDriverImpl]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) Unable to
destoy VOLUME: 54
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:237)
at
org.apache.cloudstack.storage.image.store.ImageStoreImpl.delete(ImageStoreImpl.java:148)
at
org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyVolumeBetweenPools(AncientDataMotionStrategy.java:307)
at
org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.copyAsync(AncientDataMotionStrategy.java:390)
at
org.apache.cloudstack.storage.motion.DataMotionServiceImpl.copyAsync(DataMotionServiceImpl.java:55)
at
org.apache.cloudstack.storage.volume.VolumeServiceImpl.copyVolume(VolumeServiceImpl.java:786)
at
com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl.java:2206)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.storage.VolumeManagerImpl.migrateVolume(VolumeManagerImpl.java:2198)
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)
2013-08-13 12:29:36,220 WARN [storage.datastore.ObjectInDataStoreManagerImpl]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ]) Volume 54
is not found on image store 9, so no need to delete
2013-08-13 12:29:36,233 WARN [storage.datastore.ObjectInDataStoreManagerImpl]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ])
Unsupported data object (VOLUME,
org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@59a2702), no need
to delete from object in store ref table
2013-08-13 12:29:36,242 WARN [storage.datastore.ObjectInDataStoreManagerImpl]
(Job-Executor-42:job-183 = [ eea99f06-2a42-463a-bbe9-883f24baa7e0 ])
Unsupported data object (VOLUME,
org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@8898f90), no need
to delete from object in store ref table
> [ZWPS]NPE while migrating volume from one zone wide primary to another
> ----------------------------------------------------------------------
>
> Key: CLOUDSTACK-2304
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2304
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Volumes
> Affects Versions: 4.2.0
> Environment: KVM/VMware deployment with Zone wide primary storage
> Reporter: Srikanteswararao Talluri
> Assignee: edison su
> Priority: Critical
> Fix For: 4.2.0
>
> Attachments: Archive.zip
>
>
> Try to migrate a volume from one zone wide primary storage to another.
> ===START=== 10.252.241.40 -- GET
> command=migrateVolume&storageid=230ae4af-0446-3929-a8cd-63ab88f31ab1&volumeid=d9efc3d8-1612-4998-95d7-c713e90b7173&response=json&sessionkey=yMNGYR64PRQhdJaPj99Bvs2KDDE%3D&_=1367485037836
> 2013-05-02 20:06:59,384 DEBUG [cloud.async.AsyncJobManagerImpl]
> (catalina-exec-3:null) submit async job-97, details: AsyncJobVO {id:97,
> userId: 2, accountId: 2, sessionKey: null, instanceType: null, instanceId:
> null, cmd: org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd,
> cmdOriginator: null, cmdInfo:
> {"response":"json","sessionkey":"yMNGYR64PRQhdJaPj99Bvs2KDDE\u003d","ctxUserId":"2","storageid":"230ae4af-0446-3929-a8cd-63ab88f31ab1","_":"1367485037836","volumeid":"d9efc3d8-1612-4998-95d7-c713e90b7173","ctxAccountId":"2","ctxStartEventId":"310"},
> cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
> processStatus: 0, resultCode: 0, result: null, initMsid: 7566222426160,
> completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-05-02 20:06:59,388 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null)
> ===END=== 10.252.241.40 -- GET
> command=migrateVolume&storageid=230ae4af-0446-3929-a8cd-63ab88f31ab1&volumeid=d9efc3d8-1612-4998-95d7-c713e90b7173&response=json&sessionkey=yMNGYR64PRQhdJaPj99Bvs2KDDE%3D&_=1367485037836
> 2013-05-02 20:06:59,391 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-66:job-97) Executing
> org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-97
> 2013-05-02 20:06:59,423 DEBUG [cloud.storage.VolumeManagerImpl]
> (Job-Executor-66:job-97) migrate volume failed:java.lang.NullPointerException
> 2013-05-02 20:06:59,424 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-66:job-97) Complete async job-97, jobStatus: 1, resultCode: 0,
> result: null
> 2013-05-02 20:06:59,434 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-66:job-97) Done executing
> org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd for job-97
--
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