Sangeetha Hariharan created CLOUDSTACK-5246:
-----------------------------------------------

             Summary: Xenserver - Hourly Snapshots - Creating snapshot from 
ROOT volume fails with NullPointer Exception.
                 Key: CLOUDSTACK-5246
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5246
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.3.0
         Environment: Build from 4.3
            Reporter: Sangeetha Hariharan
            Priority: Blocker
             Fix For: 4.3.0


Xenserver - Hourly Snapshots - Creating snapshot from ROOT volume fails with 
NullPointer Exception.

Steps to reproduce the problem:
Advanced zone set up with 2 Xenserver 6.2 hosts
Deploy 10 vms in each of the hosts.
Create hourly scheduled snapshot policy for all the above Vm's ROOT volume at 
"15 mts".

When creation of snapshot is attempted , they all fail with 
NullPointerException:

2013-11-21 22:18:02,992 DEBUG [c.c.s.s.SnapshotSchedulerImpl] 
(SnapshotPollTask:ctx-f5933165) Snapshot scheduler.poll is being called
at 2013-11-22 03:18:02 GMT
2013-11-21 22:18:02,994 DEBUG [c.c.s.s.SnapshotSchedulerImpl] 
(SnapshotPollTask:ctx-f5933165) Got 21 snapshots to be executed at 2013-11-22 
03:18:02 GMT
2013-11-21 22:18:03,003 DEBUG [c.c.s.s.SnapshotSchedulerImpl] 
(SnapshotPollTask:ctx-f5933165) Scheduling 1 snapshot for volume 28 for 
schedule id: 1 at 2013-11-22 03:15:00 GMT
2013-11-21 22:18:03,113 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(SnapshotPollTask:ctx-f5933165) submit async job-110, details: AsyncJobVO 
{id:110, userId: 1, accountId: 5, instanceType: Snapshot, instanceId: 1, cmd: 
org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
{"id":"1","ctxUserId":"1","volumeid":"28","ctxAccountId":"5","ctxStartEventId":"1","policyid":"1"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 112516401760401, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2013-11-21 22:18:03,119 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(Job-Executor-110:ctx-f6bd4e26) Add job-110 into job monitoring
2013-11-21 22:18:03,119 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-110:ctx-f6bd4e26) Executing AsyncJobVO {id:110, userId: 1, 
accountId: 5, instanceType: Snapshot, instanceId: 1, cmd: 
org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo: 
{"id":"1","ctxUserId":"1","volumeid":"28","ctxAccountId":"5","ctxStartEventId":"1","policyid":"1"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 112516401760401, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2013-11-21 22:18:03,119 ERROR [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-110:ctx-f6bd4e26) Unexpected exception
java.lang.NullPointerException
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl.getDispatcher(AsyncJobManagerImpl.java:454)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl.access$800(AsyncJobManagerImpl.java:80)
        at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:518)
        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 
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)
2013-11-21 22:18:03,120 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-110:ctx-f6bd4e26) Complete async job-110, jobStatus: FAILED, 
resultCode: 530, result: null


Note - I am able to take a manual snapshot of ROOT volume successfully.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to