[ https://issues.apache.org/jira/browse/CLOUDSTACK-7602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chandan Purushothama reopened CLOUDSTACK-7602: ---------------------------------------------- Sheng, If VM is in Error State, it typically means that the VM failed to deploy and has no existence. There is no point of expunging a non-existent VM whichin Error State. Shouldnt Network deletion proceed in such cases. Reopening the bug for your comment, Thank you, Chandan. > [Automation] Unable to Delete Network if VM in that network is in Error State > ----------------------------------------------------------------------------- > > Key: CLOUDSTACK-7602 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7602 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation, Test > Affects Versions: 4.5.0 > Reporter: Chandan Purushothama > Assignee: Sheng Yang > Priority: Critical > Fix For: 4.5.0 > > > *Unable to Delete Network: Job Information* > {noformat} > 2014-09-21 14:38:24,308 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (catalina-exec-17:ctx-9b725e1f ctx-b0e7426d ctx-bbfcaa45) submit async > job-1958, details: AsyncJobVO {id:1958, userId: 2, accountId: 2, > instanceType: None, instanceId: null, cmd: > org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd, cmdInfo: > {"id":"0029ccf7-f8e6-4b6d-ab63-7c67b44806f6","response":"json","ctxDetails":"{\"com.cloud.network.Network\":\"0029ccf7-f8e6-4b6d-ab63-7c67b44806f6\"}","cmdEventType":"NETWORK.DELETE","ctxUserId":"2","httpmethod":"GET","uuid":"0029ccf7-f8e6-4b6d-ab63-7c67b44806f6","ctxAccountId":"2","ctxStartEventId":"6339","apiKey":"mLrTCdYRf3-d4xO7DnO-QXw1Uqrdae1uxenHTEPj_ulDpIYTaujsXwkNzARz222s6M4xChsTAE2W-TUur5bKNQ","signature":"l+/5Sc1Vu4dbLXfFKXoz3lCLJeE\u003d"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 16226561876200, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-09-21 14:38:24,309 INFO [o.a.c.f.j.i.AsyncJobMonitor] > (API-Job-Executor-96:ctx-cc8b54bc job-1958) Add job-1958 into job monitoring > 2014-09-21 14:38:24,309 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (API-Job-Executor-96:ctx-cc8b54bc job-1958) Executing AsyncJobVO {id:1958, > userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: > org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd, cmdInfo: > {"id":"0029ccf7-f8e6-4b6d-ab63-7c67b44806f6","response":"json","ctxDetails":"{\"com.cloud.network.Network\":\"0029ccf7-f8e6-4b6d-ab63-7c67b44806f6\"}","cmdEventType":"NETWORK.DELETE","ctxUserId":"2","httpmethod":"GET","uuid":"0029ccf7-f8e6-4b6d-ab63-7c67b44806f6","ctxAccountId":"2","ctxStartEventId":"6339","apiKey":"mLrTCdYRf3-d4xO7DnO-QXw1Uqrdae1uxenHTEPj_ulDpIYTaujsXwkNzARz222s6M4xChsTAE2W-TUur5bKNQ","signature":"l+/5Sc1Vu4dbLXfFKXoz3lCLJeE\u003d"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 16226561876200, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-09-21 14:38:24,309 DEBUG [c.c.a.ApiServlet] > (catalina-exec-17:ctx-9b725e1f ctx-b0e7426d ctx-bbfcaa45) ===END=== > 10.81.29.29 -- GET > id=0029ccf7-f8e6-4b6d-ab63-7c67b44806f6&apiKey=mLrTCdYRf3-d4xO7DnO-QXw1Uqrdae1uxenHTEPj_ulDpIYTaujsXwkNzARz222s6M4xChsTAE2W-TUur5bKNQ&command=deleteNetwork&response=json&signature=l%2B%2F5Sc1Vu4dbLXfFKXoz3lCLJeE%3D > 2014-09-21 14:38:24,313 DEBUG [c.c.a.ApiServlet] > (catalina-exec-19:ctx-ae6b8223) ===START=== 10.81.29.29 -- GET > jobid=e66d3b42-a80b-44e6-88ca-6187a0a59805&apiKey=mLrTCdYRf3-d4xO7DnO-QXw1Uqrdae1uxenHTEPj_ulDpIYTaujsXwkNzARz222s6M4xChsTAE2W-TUur5bKNQ&command=queryAsyncJobResult&response=json&signature=HbvmeX6dxeewpVSQEf2XtK32TTo%3D > 2014-09-21 14:38:24,338 DEBUG [c.c.a.ApiServlet] > (catalina-exec-19:ctx-ae6b8223 ctx-323291e2 ctx-9a4b6c85) ===END=== > 10.81.29.29 -- GET > jobid=e66d3b42-a80b-44e6-88ca-6187a0a59805&apiKey=mLrTCdYRf3-d4xO7DnO-QXw1Uqrdae1uxenHTEPj_ulDpIYTaujsXwkNzARz222s6M4xChsTAE2W-TUur5bKNQ&command=queryAsyncJobResult&response=json&signature=HbvmeX6dxeewpVSQEf2XtK32TTo%3D > 2014-09-21 14:38:24,342 WARN [o.a.c.e.o.NetworkOrchestrator] > (API-Job-Executor-96:ctx-cc8b54bc job-1958 ctx-9572a853) Can't delete the > network, not all user vms are expunged. Vm VM[User|i-115-279-VM] is in Error > state > 2014-09-21 14:38:24,354 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (API-Job-Executor-96:ctx-cc8b54bc job-1958) Complete async job-1958, > jobStatus: FAILED, resultCode: 530, result: > org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed > to delete network"} > 2014-09-21 14:38:24,355 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (API-Job-Executor-96:ctx-cc8b54bc job-1958) Publish async job-1958 complete > on message bus > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)