[ https://issues.apache.org/jira/browse/CLOUDSTACK-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190453#comment-14190453 ]
Min Chen commented on CLOUDSTACK-6588: -------------------------------------- This requires design change, update to fix for future release. > Delete account should go through state transition, not just simply marked as > removed > ------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-6588 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6588 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.2.0 > Reporter: Min Chen > Priority: Critical > Fix For: 4.5.0 > > > There is a design flaw in deleting account flow. When we delete an account, > if there are some failure in the process, we have marked the account as > removed (removed column is set), and set cleanup_needed column to true. But > account state is not changed, still enabled. This will cause problem. From UI > listAccounts, this account will not show up, admin cannot do anything about > this account to be cleaned up. Correct way to handle this is to set this > account as Inactive, and Removed column is only set when we successfully > removed the account. -- This message was sent by Atlassian JIRA (v6.3.4#6332)