You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Harikrishna Patnala (JIRA)" <ji...@apache.org> on 2014/01/03 11:38:50 UTC

[jira] [Resolved] (CLOUDSTACK-5729) [Automation]Deletion of a Account reported Success inspite of VM Expunge Failures

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

Harikrishna Patnala resolved CLOUDSTACK-5729.
---------------------------------------------

    Resolution: Fixed

Commit 6ce46e94f522f08c91db2cde33829f5b41539397 in branch refs/heads/4.3 from Harikrishna Patnala
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=6ce46e9 ]

CLOUDSTACK-5730: [Automation]DirectAgentAttache's send command fails due to ArrayIndexOutOfBoundsException; Unable to cleanup hypervisor's datastructures as part of Delete Account Job


This issue is related to CLOUDSTACK-5730 because of that VM expunge got failed.


In the normal working scenario when we delete an account, it tries to clean the resources with in the account. If any error occurs CS marks the account as "cleanup_needed" in account table. After that CS checks for accounts the needs to be cleanup per interval "account.cleanup.interval".

> [Automation]Deletion of a Account reported Success inspite of VM Expunge Failures
> ---------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5729
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5729
>             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
>            Reporter: Chandan Purushothama
>            Assignee: Harikrishna Patnala
>            Priority: Critical
>             Fix For: 4.3.0
>
>         Attachments: management-server.zip
>
>
> Deletion of Account failed due to VM Exunge job failure. Inspite of that Account Deletion is reported as success.
> 2014-01-03 07:39:16,839 ERROR [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Unable to expunge vm: 44
> 2014-01-03 07:39:16,869 INFO  [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) deleteAccount: Deleted 1 network groups for account 26
> 2014-01-03 07:39:16,870 INFO  [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) deleteAccount: Deleted 0 affinity groups for account 26
> 2014-01-03 07:39:16,871 DEBUG [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Deleting networks for account 26
> 2014-01-03 07:39:16,884 DEBUG [c.c.a.ApiServlet] (catalina-exec-5:ctx-f044cb4e ctx-e5d3f936 ctx-efc2b479) ===END===  10.147.38.149 -- GET  signature=shTK1s%2FnQv84C1gwQYEUo%2F5WFW4%3D&apiKey=SyITk_W_BpbLs73aYJqNRBu9Sir1d7k6hqoKVUmFCMSVG-vshSHHKOdj_nVVTOQHqyvfR3ZSXhDzL2QUquSdJA&command=queryAsyncJobResult&response=json&jobid=fb908e1c-cdf8-4ae9-8c0d-09116061c3f7
> 2014-01-03 07:39:16,894 WARN  [o.a.c.e.o.NetworkOrchestrator] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Can't delete the network, not all user vms are expunged. Vm VM[User|QA-03d9e9fa-081a-4175-9bf2-2508034b6e17] is in Expunging state
> 2014-01-03 07:39:16,894 WARN  [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Unable to destroy network Ntwk[229|Guest|8] as a part of account id=26 cleanup.
> 2014-01-03 07:39:16,895 DEBUG [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Deleting vpcs for account 26
> 2014-01-03 07:39:16,897 DEBUG [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Deleting site-to-site VPN customer gateways for account 26
> 2014-01-03 07:39:16,908 INFO  [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) deleteAccount: Released 0 dedicated guest vlan ranges from account 26
> 2014-01-03 07:39:17,034 INFO  [c.c.u.AccountManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Cleanup for account 26 is needed.
> 2014-01-03 07:39:17,048 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-72:ctx-d82a5609 ctx-1472cd68) Complete async job-359, jobStatus: SUCCEEDED, resultCode: 0, result: org.apache.cloudstack.api.response.SuccessResponse/null/{"success":true}
> 2014-01-03 07:39:17,056 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-72:ctx-d82a5609) Done executing org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd for job-359



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)