Anshul Gangwar created CLOUDSTACK-9797:
------------------------------------------
Summary: executing deleteSnapshot api with already deleted
snapshot does not throw any exception or failure message
Key: CLOUDSTACK-9797
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9797
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Reporter: Anshul Gangwar
Assignee: Anshul Gangwar
steps
-------
1-create a snapshot
2-delete the snapshot
3-try to delete snapshot which is deleted in step 2
Expected
-------------
result should show proper error message
DB
logs
------
2016-07-26 11:25:22,434 DEBUG [c.c.a.ApiServlet]
(catalina-exec-10:ctx-aee530ad) (logid:1f3cd4f5) ===START=== 10.233.89.42 – GET
command=deleteSnapshot&id=7745795b-e8fc-46b1-bec2-4389610f8810&response=json&_=1469511561167
2016-07-26 11:25:22,558 INFO [o.a.c.f.j.i.AsyncJobMonitor]
(API-Job-Executor-16:ctx-5d2808cc job-63) (logid:ef4f8f66) Add job-63 into job
monitoring
2016-07-26 11:25:22,560 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(catalina-exec-10:ctx-aee530ad ctx-ac4d4f00) (logid:1f3cd4f5) submit async
job-63, details: AsyncJobVO {id:63, userId: 2, accountId: 2, instanceType:
Snapshot, instanceId: 3, cmd:
org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd, cmdInfo:
{"response":"json","ctxUserId":"2","httpmethod":"GET","ctxStartEventId":"149","id":"7745795b-e8fc-46b1-bec2-4389610f8810","ctxDetails":"
{\"interface
com.cloud.storage.Snapshot\":\"7745795b-e8fc-46b1-bec2-4389610f8810\"}
","ctxAccountId":"2","uuid":"7745795b-e8fc-46b1-bec2-4389610f8810","cmdEventType":"SNAPSHOT.DELETE","_":"1469511561167"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 233845177509202, completeMsid: null, lastUpdated: null,
lastPolled: null, created: null}
2016-07-26 11:25:22,560 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-16:ctx-5d2808cc job-63) (logid:8c123396) Executing AsyncJobVO
{id:63, userId: 2, accountId: 2, instanceType: Snapshot, instanceId: 3, cmd:
org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd, cmdInfo:
{"response":"json","ctxUserId":"2","httpmethod":"GET","ctxStartEventId":"149","id":"7745795b-e8fc-46b1-bec2-4389610f8810","ctxDetails":"
{\"interface
com.cloud.storage.Snapshot\":\"7745795b-e8fc-46b1-bec2-4389610f8810\"}
","ctxAccountId":"2","uuid":"7745795b-e8fc-46b1-bec2-4389610f8810","cmdEventType":"SNAPSHOT.DELETE","_":"1469511561167"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 233845177509202, completeMsid: null, lastUpdated: null,
lastPolled: null, created: null}
2016-07-26 11:25:22,561 DEBUG [c.c.a.ApiServlet] (catalina-exec-10:ctx-aee530ad
ctx-ac4d4f00) (logid:1f3cd4f5) ===END=== 10.233.89.42 – GET
command=deleteSnapshot&id=7745795b-e8fc-46b1-bec2-4389610f8810&response=json&_=1469511561167
2016-07-26 11:25:22,732 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-16:ctx-5d2808cc job-63 ctx-0adf4c0f) (logid:8c123396)
Complete async job-63, jobStatus: SUCCEEDED, resultCode: 0, result:
org.apache.cloudstack.api.response.SuccessResponse/null/
{"success":true}
2016-07-26 11:25:22,733 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-16:ctx-5d2808cc job-63 ctx-0adf4c0f) (logid:8c123396) Publish
async job-63 complete on message bus
2016-07-26 11:25:22,733 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-16:ctx-5d2808cc job-63 ctx-0adf4c0f) (logid:8c123396) Wake up
jobs related to job-63
2016-07-26 11:25:22,733 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-16:ctx-5d2808cc job-63 ctx-0adf4c0f) (logid:8c123396) Update
db status for job-63
2016-07-26 11:25:22,734 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-16:ctx-5d2808cc job-63 ctx-0adf4c0f) (logid:8c123396) Wake up
jobs joined with job-63 and disjoin all subjobs created from job- 63
2016-07-26 11:25:22,798 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-16:ctx-5d2808cc job-63) (logid:8c123396) Done executing
org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd for job-63
2016-07-26 11:25:22,798 INFO [o.a.c.f.j.i.AsyncJobMonitor]
(API-Job-Executor-16:ctx-5d2808cc job-63) (logid:8c123396) Remove job-63 from
job monitoring
2016-07-26 11:25:27,917 INFO [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-1a91206f) (logid:442b8a7a) Begin cleanup expired
async-jobs
2016-07-26 11:25:27,922 INFO [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-1a91206f) (logid:442b8a7a) End cleanup expired
async-jobs
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)