cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Likitha Shetty (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-7099) Volume snapshot is not getting backed up
Date Fri, 18 Jul 2014 08:34:04 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-7099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Likitha Shetty updated CLOUDSTACK-7099:
---------------------------------------

    Description: 
While trying to snapshot a volume, the volume snapshot is not backed up and it remains in
'Allocated' state.

As a result of the fix made to resolve [https://issues.apache.org/jira/browse/CLOUDSTACK-3272],
ConfigDao is not being injected into SnapshotStateListener which results in an NPE. And this
causes the snapshot process to fail .

=================
NullPointerException:
=================
2014-07-11 16:04:19,404 DEBUG [c.c.a.ApiServlet] (catalina-exec-6:ctx-2e149d28) ===START===
10.220.64.12 – GET apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&volumeid=cc65c8a0-d7e2-499b-9ceb-673e17b243d6&command=createSnapshot&signature=zo0mi4A8VXGZ%2FmOfLDZT%2FShR%2BX8%3D&response=json
2014-07-11 16:04:19,533 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-15:ctx-a027e338
job-735) Add job-735 into job monitoring
2014-07-11 16:04:19,533 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735) Executing AsyncJobVO {id:735, userId: 90, accountId: 87, instanceType: Snapshot,
instanceId: 5, cmd: org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo:
{"id":"5","response":"json","ctxDetails":"
{\"com.cloud.storage.Snapshot\":\"7918dca2-6515-4e59-be61-df7b91d8fc56\",\"com.cloud.storage.Volume\":\"cc65c8a0-d7e2-499b-9ceb-673e17b243d6\"}
","cmdEventType":"SNAPSHOT.CREATE","ctxUserId":"90","httpmethod":"GET","volumeid":"cc65c8a0-d7e2-499b-9ceb-673e17b243d6","uuid":"7918dca2-6515-4e59-be61-df7b91d8fc56","ctxAccountId":"87","ctxStartEventId":"1737","apiKey":"rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg","signature":"zo0mi4A8VXGZ/mOfLDZT/ShR+X8\u003d"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
161135757057464, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2014-07-11 16:04:19,541 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-6:ctx-2e149d28
ctx-25fc048a ctx-cd01f6fe) submit async job-735, details: AsyncJobVO {id:735, userId: 90,
accountId: 87, instanceType: Snapshot, instanceId: 5, cmd: org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd,
cmdInfo: {"id":"5","response":"json","ctxDetails":"
{\"com.cloud.storage.Snapshot\":\"7918dca2-6515-4e59-be61-df7b91d8fc56\",\"com.cloud.storage.Volume\":\"cc65c8a0-d7e2-499b-9ceb-673e17b243d6\"}
","cmdEventType":"SNAPSHOT.CREATE","ctxUserId":"90","httpmethod":"GET","volumeid":"cc65c8a0-d7e2-499b-9ceb-673e17b243d6","uuid":"7918dca2-6515-4e59-be61-df7b91d8fc56","ctxAccountId":"87","ctxStartEventId":"1737","apiKey":"rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg","signature":"zo0mi4A8VXGZ/mOfLDZT/ShR+X8\u003d"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
161135757057464, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2014-07-11 16:04:19,542 DEBUG [c.c.a.ApiServlet] (catalina-exec-6:ctx-2e149d28 ctx-25fc048a
ctx-cd01f6fe) ===END=== 10.220.64.12 – GET apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&volumeid=cc65c8a0-d7e2-499b-9ceb-673e17b243d6&command=createSnapshot&signature=zo0mi4A8VXGZ%2FmOfLDZT%2FShR%2BX8%3D&response=json
2014-07-11 16:04:19,546 DEBUG [c.c.a.ApiServlet] (catalina-exec-9:ctx-75ac13f2) ===START===
10.220.64.12 – GET signature=k8LWw86VI1dsYgKIkPKfAnItTNg%3D&apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&command=queryAsyncJobResult&response=json&jobid=5ea54c94-19ba-4dc3-956c-5df2ad886805
2014-07-11 16:04:19,556 INFO [o.a.c.a.c.u.s.CreateSnapshotCmd] (API-Job-Executor-15:ctx-a027e338
job-735 ctx-3e8bff7c) VOLSS: createSnapshotCmd starts:1405094659556
2014-07-11 16:04:19,562 DEBUG [c.c.a.ApiServlet] (catalina-exec-9:ctx-75ac13f2 ctx-6a8438cf
ctx-9fe220cb) ===END=== 10.220.64.12 – GET signature=k8LWw86VI1dsYgKIkPKfAnItTNg%3D&apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&command=queryAsyncJobResult&response=json&jobid=5ea54c94-19ba-4dc3-956c-5df2ad886805
2014-07-11 16:04:19,583 DEBUG [c.c.s.s.SnapshotManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735 ctx-3e8bff7c) Failed to create snapshot
java.lang.NullPointerException
at com.cloud.storage.listener.SnapshotStateListener.pubishOnEventBus(SnapshotStateListener.java:71)
at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:58)
at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:44)
at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:110)
at org.apache.cloudstack.storage.snapshot.SnapshotStateMachineManagerImpl.processEvent(SnapshotStateMachineManagerImpl.java:60)
at org.apache.cloudstack.storage.snapshot.SnapshotObject.processEvent(SnapshotObject.java:262)
at org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.takeSnapshot(SnapshotServiceImpl.java:174)
at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:284)
at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:966)
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:601)
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 $Proxy179.takeSnapshot(Unknown Source)
at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1503)
at com.cloud.storage.VolumeApiServiceImpl.takeSnapshot(VolumeApiServiceImpl.java:1781)
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:601)
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 $Proxy183.takeSnapshot(Unknown Source)
at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:187)
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:507)
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:464)
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:722)
2014-07-11 16:04:19,591 DEBUG [o.a.c.s.v.VolumeServiceImpl] (API-Job-Executor-15:ctx-a027e338
job-735 ctx-3e8bff7c) Take snapshot: 81 failed
com.cloud.utils.exception.CloudRuntimeException: Failed to create snapshot
at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:983)
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:601)
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 $Proxy179.takeSnapshot(Unknown Source)
at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1503)
at com.cloud.storage.VolumeApiServiceImpl.takeSnapshot(VolumeApiServiceImpl.java:1781)
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:601)
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 $Proxy183.takeSnapshot(Unknown Source)
at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:187)
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:507)
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:464)
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:722)
Caused by: java.lang.NullPointerException
at com.cloud.storage.listener.SnapshotStateListener.pubishOnEventBus(SnapshotStateListener.java:71)
at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:58)
at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:44)
at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:110)
at org.apache.cloudstack.storage.snapshot.SnapshotStateMachineManagerImpl.processEvent(SnapshotStateMachineManagerImpl.java:60)
at org.apache.cloudstack.storage.snapshot.SnapshotObject.processEvent(SnapshotObject.java:262)
at org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.takeSnapshot(SnapshotServiceImpl.java:174)
at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:284)
at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:966)
... 40 more
2014-07-11 16:04:19,591 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735) Complete async job-735, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/
{"uuidList":[],"errorcode":530,"errortext":"Failed to create snapshot due to an internal error
creating snapshot for volume 81"}
2014-07-11 16:04:19,595 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735) Done executing org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd
for job-735
2014-07-11 16:04:19,598 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-15:ctx-a027e338
job-735) Remove job-735 from job monitoring
2014-07-11 16:04:21,232 DEBUG [c.c.s.StatsCollector] (StatsCollector-4:ctx-83f14b2b) AutoScaling
Monitor is running...

  was:
While trying to snapshot a volume, the volume snapshot is not backed up and it remains in
'Allocated' state.

As a result of the fix made to resolve [https://issues.apache.org/jira/browse/CLOUDSTACK-3272],
ConfigDao is not being injected into SnapshotStateListener which results in an NPE. And this
causes the snapshot process to fail .


> Volume snapshot is not getting backed up
> ----------------------------------------
>
>                 Key: CLOUDSTACK-7099
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7099
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Snapshot
>    Affects Versions: 4.5.0
>            Reporter: Likitha Shetty
>            Assignee: Likitha Shetty
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> While trying to snapshot a volume, the volume snapshot is not backed up and it remains
in 'Allocated' state.
> As a result of the fix made to resolve [https://issues.apache.org/jira/browse/CLOUDSTACK-3272],
ConfigDao is not being injected into SnapshotStateListener which results in an NPE. And this
causes the snapshot process to fail .
> =================
> NullPointerException:
> =================
> 2014-07-11 16:04:19,404 DEBUG [c.c.a.ApiServlet] (catalina-exec-6:ctx-2e149d28) ===START===
10.220.64.12 – GET apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&volumeid=cc65c8a0-d7e2-499b-9ceb-673e17b243d6&command=createSnapshot&signature=zo0mi4A8VXGZ%2FmOfLDZT%2FShR%2BX8%3D&response=json
> 2014-07-11 16:04:19,533 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-15:ctx-a027e338
job-735) Add job-735 into job monitoring
> 2014-07-11 16:04:19,533 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735) Executing AsyncJobVO {id:735, userId: 90, accountId: 87, instanceType: Snapshot,
instanceId: 5, cmd: org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo:
{"id":"5","response":"json","ctxDetails":"
> {\"com.cloud.storage.Snapshot\":\"7918dca2-6515-4e59-be61-df7b91d8fc56\",\"com.cloud.storage.Volume\":\"cc65c8a0-d7e2-499b-9ceb-673e17b243d6\"}
> ","cmdEventType":"SNAPSHOT.CREATE","ctxUserId":"90","httpmethod":"GET","volumeid":"cc65c8a0-d7e2-499b-9ceb-673e17b243d6","uuid":"7918dca2-6515-4e59-be61-df7b91d8fc56","ctxAccountId":"87","ctxStartEventId":"1737","apiKey":"rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg","signature":"zo0mi4A8VXGZ/mOfLDZT/ShR+X8\u003d"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
161135757057464, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2014-07-11 16:04:19,541 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-6:ctx-2e149d28
ctx-25fc048a ctx-cd01f6fe) submit async job-735, details: AsyncJobVO {id:735, userId: 90,
accountId: 87, instanceType: Snapshot, instanceId: 5, cmd: org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd,
cmdInfo: {"id":"5","response":"json","ctxDetails":"
> {\"com.cloud.storage.Snapshot\":\"7918dca2-6515-4e59-be61-df7b91d8fc56\",\"com.cloud.storage.Volume\":\"cc65c8a0-d7e2-499b-9ceb-673e17b243d6\"}
> ","cmdEventType":"SNAPSHOT.CREATE","ctxUserId":"90","httpmethod":"GET","volumeid":"cc65c8a0-d7e2-499b-9ceb-673e17b243d6","uuid":"7918dca2-6515-4e59-be61-df7b91d8fc56","ctxAccountId":"87","ctxStartEventId":"1737","apiKey":"rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg","signature":"zo0mi4A8VXGZ/mOfLDZT/ShR+X8\u003d"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
161135757057464, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2014-07-11 16:04:19,542 DEBUG [c.c.a.ApiServlet] (catalina-exec-6:ctx-2e149d28 ctx-25fc048a
ctx-cd01f6fe) ===END=== 10.220.64.12 – GET apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&volumeid=cc65c8a0-d7e2-499b-9ceb-673e17b243d6&command=createSnapshot&signature=zo0mi4A8VXGZ%2FmOfLDZT%2FShR%2BX8%3D&response=json
> 2014-07-11 16:04:19,546 DEBUG [c.c.a.ApiServlet] (catalina-exec-9:ctx-75ac13f2) ===START===
10.220.64.12 – GET signature=k8LWw86VI1dsYgKIkPKfAnItTNg%3D&apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&command=queryAsyncJobResult&response=json&jobid=5ea54c94-19ba-4dc3-956c-5df2ad886805
> 2014-07-11 16:04:19,556 INFO [o.a.c.a.c.u.s.CreateSnapshotCmd] (API-Job-Executor-15:ctx-a027e338
job-735 ctx-3e8bff7c) VOLSS: createSnapshotCmd starts:1405094659556
> 2014-07-11 16:04:19,562 DEBUG [c.c.a.ApiServlet] (catalina-exec-9:ctx-75ac13f2 ctx-6a8438cf
ctx-9fe220cb) ===END=== 10.220.64.12 – GET signature=k8LWw86VI1dsYgKIkPKfAnItTNg%3D&apiKey=rxE2hLk5MHzoICoYNRyFf8L5PrmohVkUWNwtGE12LlZ7LF5mEsTeiSA6yAYYA3GPkX7ltSYhLOkd_h2i4GOYrg&command=queryAsyncJobResult&response=json&jobid=5ea54c94-19ba-4dc3-956c-5df2ad886805
> 2014-07-11 16:04:19,583 DEBUG [c.c.s.s.SnapshotManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735 ctx-3e8bff7c) Failed to create snapshot
> java.lang.NullPointerException
> at com.cloud.storage.listener.SnapshotStateListener.pubishOnEventBus(SnapshotStateListener.java:71)
> at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:58)
> at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:44)
> at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:110)
> at org.apache.cloudstack.storage.snapshot.SnapshotStateMachineManagerImpl.processEvent(SnapshotStateMachineManagerImpl.java:60)
> at org.apache.cloudstack.storage.snapshot.SnapshotObject.processEvent(SnapshotObject.java:262)
> at org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.takeSnapshot(SnapshotServiceImpl.java:174)
> at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:284)
> at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:966)
> 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:601)
> 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 $Proxy179.takeSnapshot(Unknown Source)
> at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1503)
> at com.cloud.storage.VolumeApiServiceImpl.takeSnapshot(VolumeApiServiceImpl.java:1781)
> 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:601)
> 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 $Proxy183.takeSnapshot(Unknown Source)
> at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:187)
> 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:507)
> 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:464)
> 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:722)
> 2014-07-11 16:04:19,591 DEBUG [o.a.c.s.v.VolumeServiceImpl] (API-Job-Executor-15:ctx-a027e338
job-735 ctx-3e8bff7c) Take snapshot: 81 failed
> com.cloud.utils.exception.CloudRuntimeException: Failed to create snapshot
> at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:983)
> 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:601)
> 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 $Proxy179.takeSnapshot(Unknown Source)
> at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1503)
> at com.cloud.storage.VolumeApiServiceImpl.takeSnapshot(VolumeApiServiceImpl.java:1781)
> 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:601)
> 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 $Proxy183.takeSnapshot(Unknown Source)
> at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:187)
> 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:507)
> 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:464)
> 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:722)
> Caused by: java.lang.NullPointerException
> at com.cloud.storage.listener.SnapshotStateListener.pubishOnEventBus(SnapshotStateListener.java:71)
> at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:58)
> at com.cloud.storage.listener.SnapshotStateListener.preStateTransitionEvent(SnapshotStateListener.java:44)
> at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:110)
> at org.apache.cloudstack.storage.snapshot.SnapshotStateMachineManagerImpl.processEvent(SnapshotStateMachineManagerImpl.java:60)
> at org.apache.cloudstack.storage.snapshot.SnapshotObject.processEvent(SnapshotObject.java:262)
> at org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.takeSnapshot(SnapshotServiceImpl.java:174)
> at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:284)
> at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:966)
> ... 40 more
> 2014-07-11 16:04:19,591 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735) Complete async job-735, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/
> {"uuidList":[],"errorcode":530,"errortext":"Failed to create snapshot due to an internal
error creating snapshot for volume 81"}
> 2014-07-11 16:04:19,595 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-15:ctx-a027e338
job-735) Done executing org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd
for job-735
> 2014-07-11 16:04:19,598 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-15:ctx-a027e338
job-735) Remove job-735 from job monitoring
> 2014-07-11 16:04:21,232 DEBUG [c.c.s.StatsCollector] (StatsCollector-4:ctx-83f14b2b)
AutoScaling Monitor is running...



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

Mime
View raw message