Abhinav Roy created CLOUDSTACK-7323:
---------------------------------------

             Summary: [vGPU] Creation of VM snapshot with "memory" is failing 
                 Key: CLOUDSTACK-7323
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7323
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server, Snapshot
    Affects Versions: 4.5.0
         Environment: Xenserver 6.2 SP1 + vGPU
            Reporter: Abhinav Roy
            Priority: Critical
             Fix For: 4.5.0


Steps :
====================
1. Deploy CloudStack setup with Xenserver 6.2 sp1 host which has GPU cards.
2. Create a VM with windows template.
3. Install PV drivers in the VM created above.
4. Take VM snapshot with "memory"

Expected behavior :
====================
VM snapshot should be successful.

Observed behavior :
===================
VM snapshot fails with the following error :

2014-08-12 19:39:34,089 DEBUG [c.c.v.VmWorkJobDispatcher] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606) Run VM work job: 
com.cloud.vm.snapshot.VmWorkCreateVMSnapshot for VM 38, job origin: 605
2014-08-12 19:39:34,093 DEBUG [c.c.v.VmWorkJobHandlerProxy] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Execute VM 
work job: 
com.cloud.vm.snapshot.VmWorkCreateVMSnapshot{"vmSnapshotId":2,"quiesceVm":false,"userId":61,"accountId":61,"vmId":38,"handlerName":"VMSnapshotManagerImpl"}
2014-08-12 19:39:34,120 DEBUG [c.c.a.t.Request] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Seq 
1-2048293405523443998: Sending  { Cmd , MgmtId: 55355881446856, via: 
1(cldstk-R720-66), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.CreateVMSnapshotCommand":{"vmState":"Running","volumeTOs":[{"uuid":"3af646dd-6f53-490a-a897-978428b5d608","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"96438f80-3b68-34fe-8492-f6ac9e3db3dc","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.101","path":"/Sailaja/goletaps1","port":2049,"url":"NetworkFilesystem://10.102.192.101/Sailaja/goletaps1/?ROLE=Primary&STOREUUID=96438f80-3b68-34fe-8492-f6ac9e3db3dc"}},"name":"ROOT-38","size":21474836480,"path":"e8645c41-4904-4a7c-adb0-87ce0d414da7","volumeId":39,"vmName":"i-61-38-VM","accountId":61,"format":"VHD","provisioningType":"THIN","id":39,"deviceId":0,"hypervisorType":"XenServer"}],"target":{"id":2,"snapshotName":"i-61-38-VM_VS_20140812140932","type":"DiskAndMemory","current":false,"quiescevm":false},"vmName":"i-61-38-VM","guestOSType":"Windows
 8 (64-bit)","platformEmulator":"Windows 8 (64-bit)","wait":1800}}] }
2014-08-12 19:39:34,121 DEBUG [c.c.a.t.Request] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Seq 
1-2048293405523443998: Executing:  { Cmd , MgmtId: 55355881446856, via: 
1(cldstk-R720-66), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.CreateVMSnapshotCommand":{"vmState":"Running","volumeTOs":[{"uuid":"3af646dd-6f53-490a-a897-978428b5d608","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"96438f80-3b68-34fe-8492-f6ac9e3db3dc","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.101","path":"/Sailaja/goletaps1","port":2049,"url":"NetworkFilesystem://10.102.192.101/Sailaja/goletaps1/?ROLE=Primary&STOREUUID=96438f80-3b68-34fe-8492-f6ac9e3db3dc"}},"name":"ROOT-38","size":21474836480,"path":"e8645c41-4904-4a7c-adb0-87ce0d414da7","volumeId":39,"vmName":"i-61-38-VM","accountId":61,"format":"VHD","provisioningType":"THIN","id":39,"deviceId":0,"hypervisorType":"XenServer"}],"target":{"id":2,"snapshotName":"i-61-38-VM_VS_20140812140932","type":"DiskAndMemory","current":false,"quiescevm":false},"vmName":"i-61-38-VM","guestOSType":"Windows
 8 (64-bit)","platformEmulator":"Windows 8 (64-bit)","wait":1800}}] }
2014-08-12 19:39:34,121 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-36:ctx-9bff71f3) Seq 1-2048293405523443998: Executing request
2014-08-12 19:39:34,224 WARN  [c.c.h.x.r.CitrixResourceBase] 
(DirectAgent-36:ctx-9bff71f3) Task failed! Task record:                 uuid: 
ba41eab1-b90c-a468-d1b3-55b1024b81b8
           nameLabel: Async.VM.checkpoint
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Tue Aug 12 18:27:26 IST 2014
            finished: Tue Aug 12 18:27:26 IST 2014
              status: failure
          residentOn: com.xensource.xenapi.Host@fb990ea3
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [VM_HAS_VGPU, 
OpaqueRef:f197581b-ad88-d3eb-3229-ab9732fa6aaf]
         otherConfig: {CS_VM_SNAPSHOT_KEY=i-61-38-VM_VS_20140812140932}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

2014-08-12 19:39:34,237 ERROR [c.c.h.x.r.CitrixResourceBase] 
(DirectAgent-36:ctx-9bff71f3) Creating VM Snapshot i-61-38-VM_VS_20140812140932 
failed due to:
2014-08-12 19:39:34,238 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-36:ctx-9bff71f3) Seq 1-2048293405523443998: Response Received:
2014-08-12 19:39:34,238 DEBUG [c.c.a.t.Request] (DirectAgent-36:ctx-9bff71f3) 
Seq 1-2048293405523443998: Processing:  { Ans: , MgmtId: 55355881446856, via: 
1, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.CreateVMSnapshotAnswer":{"result":false,"details":"","wait":0}}]
 }
2014-08-12 19:39:34,238 DEBUG [c.c.a.t.Request] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Seq 
1-2048293405523443998: Received:  { Ans: , MgmtId: 55355881446856, via: 1, Ver: 
v1, Flags: 10, { CreateVMSnapshotAnswer } }
2014-08-12 19:39:34,238 ERROR [o.a.c.s.v.DefaultVMSnapshotStrategy] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Creating VM 
snapshot: i-61-38-VM_VS_20140812140932 failed due to
2014-08-12 19:39:34,243 DEBUG [c.c.v.s.VMSnapshotManagerImpl] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Failed to 
create vm snapshot: 2
com.cloud.utils.exception.CloudRuntimeException: Creating VM snapshot: 
i-61-38-VM_VS_20140812140932 failed due to
        at 
org.apache.cloudstack.storage.vmsnapshot.DefaultVMSnapshotStrategy.takeVMSnapshot(DefaultVMSnapshotStrategy.java:163)
        at 
com.cloud.vm.snapshot.VMSnapshotManagerImpl.orchestrateCreateVMSnapshot(VMSnapshotManagerImpl.java:422)
        at 
com.cloud.vm.snapshot.VMSnapshotManagerImpl.orchestrateCreateVMSnapshot(VMSnapshotManagerImpl.java:1049)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
        at 
com.cloud.vm.snapshot.VMSnapshotManagerImpl.handleVmWorkJob(VMSnapshotManagerImpl.java:1076)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy184.handleVmWorkJob(Unknown Source)
        at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
        at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
        at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
2014-08-12 19:39:34,244 ERROR [c.c.v.VmWorkJobHandlerProxy] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Invocation 
exception, caused by: java.lang.NullPointerException
2014-08-12 19:39:34,244 INFO  [c.c.v.VmWorkJobHandlerProxy] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606 ctx-05ea1ea9) Rethrow 
exception java.lang.NullPointerException
2014-08-12 19:39:34,244 DEBUG [c.c.v.VmWorkJobDispatcher] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606) Done with run of VM work 
job: com.cloud.vm.snapshot.VmWorkCreateVMSnapshot for VM 38, job origin: 605
2014-08-12 19:39:34,244 ERROR [c.c.v.VmWorkJobDispatcher] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606) Unable to complete 
AsyncJobVO {id:606, userId: 61, accountId: 61, instanceType: null, instanceId: 
null, cmd: com.cloud.vm.snapshot.VmWorkCreateVMSnapshot, cmdInfo: 
rO0ABXNyACxjb20uY2xvdWQudm0uc25hcHNob3QuVm1Xb3JrQ3JlYXRlVk1TbmFwc2hvdAG56JeB4A8uAgACWgAJcXVpZXNjZVZtTAAMdm1TbmFwc2hvdElkdAAQTGphdmEvbGFuZy9Mb25nO3hyABNjb20uY2xvdWQudm0uVm1Xb3Jrn5m2VvAlZ2sCAARKAAlhY2NvdW50SWRKAAZ1c2VySWRKAAR2bUlkTAALaGFuZGxlck5hbWV0ABJMamF2YS9sYW5nL1N0cmluZzt4cAAAAAAAAAA9AAAAAAAAAD0AAAAAAAAAJnQAFVZNU25hcHNob3RNYW5hZ2VySW1wbABzcgAOamF2YS5sYW5nLkxvbmc7i-SQzI8j3wIAAUoABXZhbHVleHIAEGphdmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhwAAAAAAAAAAI,
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 55355881446856, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: Tue Aug 12 19:39:32 IST 2014}, job origin:605
java.lang.NullPointerException
        at 
com.cloud.vm.snapshot.VMSnapshotManagerImpl.orchestrateCreateVMSnapshot(VMSnapshotManagerImpl.java:1050)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
        at 
com.cloud.vm.snapshot.VMSnapshotManagerImpl.handleVmWorkJob(VMSnapshotManagerImpl.java:1076)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy184.handleVmWorkJob(Unknown Source)
        at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
        at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
        at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
2014-08-12 19:39:34,257 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606) Complete async job-606, 
jobStatus: FAILED, resultCode: 0, result: 
rO0ABXNyABpqYXZhLmxhbmcuUnVudGltZUV4Y2VwdGlvbp5fBkcKNIPlAgAAeHIAE2phdmEubGFuZy5FeGNlcHRpb27Q_R8-GjscxAIAAHhyABNqYXZhLmxhbmcuVGhyb3dhYmxl1cY1Jzl3uMsDAARMAAVjYXVzZXQAFUxqYXZhL2xhbmcvVGhyb3dhYmxlO0wADWRldGFpbE1lc3NhZ2V0ABJMamF2YS9sYW5nL1N0cmluZztbAApzdGFja1RyYWNldAAeW0xqYXZhL2xhbmcvU3RhY2tUcmFjZUVsZW1lbnQ7TAAUc3VwcHJlc3NlZEV4Y2VwdGlvbnN0ABBMamF2YS91dGlsL0xpc3Q7eHBxAH4AB3QAIEpvYiBmYWlsZWQgZHVlIHRvIGV4Y2VwdGlvbiBudWxsdXIAHltMamF2YS5sYW5nLlN0YWNrVHJhY2VFbGVtZW50OwJGKjw8_SI5AgAAeHAAAAANc3IAG2phdmEubGFuZy5TdGFja1RyYWNlRWxlbWVudGEJxZomNt2FAgAESQAKbGluZU51bWJlckwADmRlY2xhcmluZ0NsYXNzcQB-AARMAAhmaWxlTmFtZXEAfgAETAAKbWV0aG9kTmFtZXEAfgAEeHAAAABydAAgY29tLmNsb3VkLnZtLlZtV29ya0pvYkRpc3BhdGNoZXJ0ABhWbVdvcmtKb2JEaXNwYXRjaGVyLmphdmF0AAZydW5Kb2JzcQB-AAsAAAH3dAA_b3JnLmFwYWNoZS5jbG91ZHN0YWNrLmZyYW1ld29yay5qb2JzLmltcGwuQXN5bmNKb2JNYW5hZ2VySW1wbCQ1dAAYQXN5bmNKb2JNYW5hZ2VySW1wbC5qYXZhdAAMcnVuSW5Db250ZXh0c3EAfgALAAAAMXQAPm9yZy5hcGFjaGUuY2xvdWRzdGFjay5tYW5hZ2VkLmNvbnRleHQuTWFuYWdlZENvbnRleHRSdW5uYWJsZSQxdAAbTWFuYWdlZENvbnRleHRSdW5uYWJsZS5qYXZhdAADcnVuc3EAfgALAAAAOHQAQm9yZy5hcGFjaGUuY2xvdWRzdGFjay5tYW5hZ2VkLmNvbnRleHQuaW1wbC5EZWZhdWx0TWFuYWdlZENvbnRleHQkMXQAGkRlZmF1bHRNYW5hZ2VkQ29udGV4dC5qYXZhdAAEY2FsbHNxAH4ACwAAAGd0AEBvcmcuYXBhY2hlLmNsb3Vkc3RhY2subWFuYWdlZC5jb250ZXh0LmltcGwuRGVmYXVsdE1hbmFnZWRDb250ZXh0cQB-ABp0AA9jYWxsV2l0aENvbnRleHRzcQB-AAsAAAA1cQB-AB1xAH4AGnQADnJ1bldpdGhDb250ZXh0c3EAfgALAAAALnQAPG9yZy5hcGFjaGUuY2xvdWRzdGFjay5tYW5hZ2VkLmNvbnRleHQuTWFuYWdlZENvbnRleHRSdW5uYWJsZXEAfgAWcQB-ABdzcQB-AAsAAAHMcQB-ABFxAH4AEnEAfgAXc3EAfgALAAAB13QALmphdmEudXRpbC5jb25jdXJyZW50LkV4ZWN1dG9ycyRSdW5uYWJsZUFkYXB0ZXJ0AA5FeGVjdXRvcnMuamF2YXEAfgAbc3EAfgALAAABBnQAH2phdmEudXRpbC5jb25jdXJyZW50LkZ1dHVyZVRhc2t0AA9GdXR1cmVUYXNrLmphdmFxAH4AF3NxAH4ACwAABHl0ACdqYXZhLnV0aWwuY29uY3VycmVudC5UaHJlYWRQb29sRXhlY3V0b3J0ABdUaHJlYWRQb29sRXhlY3V0b3IuamF2YXQACXJ1bldvcmtlcnNxAH4ACwAAAmd0AC5qYXZhLnV0aWwuY29uY3VycmVudC5UaHJlYWRQb29sRXhlY3V0b3IkV29ya2VycQB-ACxxAH4AF3NxAH4ACwAAAuh0ABBqYXZhLmxhbmcuVGhyZWFkdAALVGhyZWFkLmphdmFxAH4AF3NyACZqYXZhLnV0aWwuQ29sbGVjdGlvbnMkVW5tb2RpZmlhYmxlTGlzdPwPJTG17I4QAgABTAAEbGlzdHEAfgAGeHIALGphdmEudXRpbC5Db2xsZWN0aW9ucyRVbm1vZGlmaWFibGVDb2xsZWN0aW9uGUIAgMte9x4CAAFMAAFjdAAWTGphdmEvdXRpbC9Db2xsZWN0aW9uO3hwc3IAE2phdmEudXRpbC5BcnJheUxpc3R4gdIdmcdhnQMAAUkABHNpemV4cAAAAAB3BAAAAAB4cQB-ADh4
2014-08-12 19:39:34,271 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606) Done executing 
com.cloud.vm.snapshot.VmWorkCreateVMSnapshot for job-606
2014-08-12 19:39:34,290 DEBUG [o.a.c.f.j.i.SyncQueueManagerImpl] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606) Sync queue (97) is 
currently empty
2014-08-12 19:39:34,290 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(Work-Job-Executor-28:ctx-52530808 job-605/job-606) Remove job-606 from job 
monitoring
2014-08-12 19:39:34,304 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-17:ctx-ad20c980 job-605) Unexpected exception while executing 
org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd
java.lang.RuntimeException: Unexpected exception
        at 
com.cloud.vm.snapshot.VMSnapshotManagerImpl.creatVMSnapshot(VMSnapshotManagerImpl.java:401)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at 
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at 
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy184.creatVMSnapshot(Unknown Source)
        at 
org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd.execute(CreateVMSnapshotCmd.java:113)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
        at 
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
        at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
        at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.RuntimeException: Job failed due to exception null
        ... 30 more
2014-08-12 19:39:34,307 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-17:ctx-ad20c980 job-605) Complete async job-605, jobStatus: 
FAILED, resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Unexpected
 exception"}
2014-08-12 19:39:34,312 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-17:ctx-ad20c980 job-605) Done executing 
org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd for 
job-605

NOTE :

The VM snapshot creation is successful if we create the snapshot without memory.




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to