manasaveloori created CLOUDSTACK-4367:
-----------------------------------------
Summary: [VMware]Extract volume(local and shared) is failing with
NPE
Key: CLOUDSTACK-4367
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4367
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
Reporter: manasaveloori
Priority: Critical
Fix For: 4.2.0
Steps:
1. Have a CS 4.2 with VMware host.
2. Have primary- 1 local and 2 shared(NFS) and secondary-NFS.
3. Create a shared and local data volumes.
4. Extract the volume from the above data volumes.
Observations:
Observed the NPE while executing Extract volume command on local and shared
data volumes.
2013-08-16 20:56:37,927 DEBUG [cloud.api.ApiServlet] (catalina-exec-6:null)
===START=== 10.252.192.69 -- GET
command=extractVolume&id=b13176b8-4377-4973-b18a-e160d14ce38b&zoneid=83708813-d2a4-4271-aff9-e8c846d960ef&mode=HTTP_DOWNLOAD&response=json&sessionkey=x3AM9LcYvZ%2FzkGJ8%2BLR2uNIPzOs%3D&_=1376647418350
2013-08-16 20:56:38,044 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-6:null) submit async job-56 = [
9541b346-c900-4b1e-b8cb-73f7cf1c60bb ], details: AsyncJobVO {id:56, userId: 2,
accountId: 2, sessionKey: null, instanceType: Volume, instanceId: 7, cmd:
org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd, cmdOriginator:
null, cmdInfo:
{"response":"json","id":"b13176b8-4377-4973-b18a-e160d14ce38b","sessionkey":"x3AM9LcYvZ/zkGJ8+LR2uNIPzOs\u003d","cmdEventType":"VOLUME.EXTRACT","ctxUserId":"2","zoneid":"83708813-d2a4-4271-aff9-e8c846d960ef","httpmethod":"GET","_":"1376647418350","ctxAccountId":"2","ctxStartEventId":"161","mode":"HTTP_DOWNLOAD"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 7067804893289,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-08-16 20:56:38,049 DEBUG [cloud.api.ApiServlet] (catalina-exec-6:null)
===END=== 10.252.192.69 -- GET
command=extractVolume&id=b13176b8-4377-4973-b18a-e160d14ce38b&zoneid=83708813-d2a4-4271-aff9-e8c846d960ef&mode=HTTP_DOWNLOAD&response=json&sessionkey=x3AM9LcYvZ%2FzkGJ8%2BLR2uNIPzOs%3D&_=1376647418350
2013-08-16 20:56:38,053 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-56:job-56 = [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]) Executing
org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd for job-56 = [
9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]
2013-08-16 20:56:38,155 DEBUG [storage.motion.AncientDataMotionStrategy]
(Job-Executor-56:job-56 = [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]) copyAsync
inspecting src type VOLUME copyAsync inspecting dest type VOLUME
2013-08-16 20:56:38,255 DEBUG [agent.transport.Request] (Job-Executor-56:job-56
= [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]) Seq 3-173277428: Sending { Cmd ,
MgmtId: 7067804893289, via: 3, Ver: v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"b13176b8-4377-4973-b18a-e160d14ce38b","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"9c5838f1-4874-4dea-b396-d318f56ff192","id":1,"poolType":"LVM","host":"10.147.40.25","path":"datastore-11514","port":0}},"name":"local","size":2147483648,"path":"ed3ea4a262c6485dae3a866879194036","volumeId":7,"accountId":2,"format":"OVA","id":7,"hypervisorType":"VMware"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"b13176b8-4377-4973-b18a-e160d14ce38b","volumeType":"DATADISK","dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/manasa/secondaryVMw","_role":"Image"}},"name":"local","size":2147483648,"path":"volumes/2/7","volumeId":7,"accountId":2,"format":"OVA","id":7,"hypervisorType":"VMware"}},"executeInSequence":false,"wait":10800}}]
}
2013-08-16 20:56:38,341 DEBUG [agent.transport.Request]
(AgentManager-Handler-1:null) Seq 3-173277428: Processing: { Ans: , MgmtId:
7067804893289, via: 3, Ver: v1, Flags: 10,
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"copy
volume from primary to secondary failed due to exception: Exception:
java.lang.NullPointerException\nMessage: null\n","wait":0}}] }
2013-08-16 20:56:38,344 DEBUG [agent.transport.Request] (Job-Executor-56:job-56
= [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]) Seq 3-173277428: Received: { Ans:
, MgmtId: 7067804893289, via: 3, Ver: v1, Flags: 10, { CopyCmdAnswer } }
2013-08-16 20:56:38,361 WARN [storage.datastore.ObjectInDataStoreManagerImpl]
(Job-Executor-56:job-56 = [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]) Unsupported
data object (VOLUME,
org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@1e7a60e0), no need
to delete from object in store ref table
2013-08-16 20:56:38,391 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-56:job-56 = [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]) Unexpected
exception while executing
org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to copy the volume from
the source primary storage pool to secondary storage.
at
com.cloud.storage.VolumeManagerImpl.extractVolume(VolumeManagerImpl.java:2832)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd.execute(ExtractVolumeCmd.java:130)
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-08-16 20:56:38,395 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-56:job-56 = [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ]) Complete
async job-56 = [ 9541b346-c900-4b1e-b8cb-73f7cf1c60bb ], jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to copy the volume
from the source primary storage pool to secondary storage.
2013-08-16 20:56:40,453 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-4:null) SeqA 2-1560:
Attaching 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