cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "manasaveloori (JIRA)" <>
Subject [jira] [Created] (CLOUDSTACK-7264) NPE while creating scheduled/recurring snapshots for the removed account with cleanup_needed=1
Date Wed, 06 Aug 2014 09:07:14 GMT
manasaveloori created CLOUDSTACK-7264:

             Summary: NPE while creating scheduled/recurring snapshots for the removed account
with cleanup_needed=1
                 Key: CLOUDSTACK-7264
             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: manasaveloori
            Priority: Critical
             Fix For: 4.5.0
         Attachments: management-server.rar, mysqldump45.dmp

1. Created an account "test" with a user "testuser"
2. Deployed a VM with data disk.
3. Created snapshots of both root and data disks.
4. Scheduled hourly,daily,weekly,monthly snapshots of both data and root volumes.
5. While the snapshot is in backingup state deleted the account "test"


1. Account "test" got deleted but clean up of account failed as one of the snapshot is in
"backingup" state.

  id: 5
   account_name: acct
           uuid: deb3b748-63ca-4566-8c34-a8bf6685bf11
           type: 0
      domain_id: 1
          state: enabled
        removed: 2014-08-06 07:15:23
 cleanup_needed: 1
 network_domain: NULL
default_zone_id: NULL
        default: 0

2. Now changed the "account.cleanup.interval"=300sec
3. Now that account is removed with cleanup_needed=1 and scheduled snapshot is triggered.
Snapshot creation failed with NPE and left in Allocated state

2014-08-06 12:51:42,597 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-11:ctx-0e534263
job-279) Add job-279 into job monitoring
2014-08-06 12:51:42,597 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-11:ctx-0e534263
job-279) Executing AsyncJobVO {id:279, userId: 1, accountId: 5, instanceType: Snapshot, instanceId:
52, cmd: org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd, cmdInfo:

, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
6876007760021, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2014-08-06 12:51:42,600 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-11:ctx-0e534263
job-279) Unexpected exception while executing org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd
at org.apache.cloudstack.context.CallContext.<init>(
at org.apache.cloudstack.context.CallContext.register(
at org.apache.cloudstack.context.CallContext.register(
at org.apache.cloudstack.context.CallContext.register(
at org.apache.cloudstack.managed.context.ManagedContextRunnable$
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
2014-08-06 12:51:42,606 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-11:ctx-0e534263
job-279) Complete async job-279, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/

2014-08-06 12:51:42,614 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-11:ctx-0e534263
job-279) Done executing org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd
for job-279

4. Now as the snapshot state is left in "allocated state"...and account cleanup after 300
secs is failing now because of snapshots left in "allocated" state....

Everytime scheduled snapshots are triggered they are failing with NPE for this removed account
with cleanup_needed=1

attaching the MSlogs and db dumps

This message was sent by Atlassian JIRA

View raw message