[
https://issues.apache.org/jira/browse/CLOUDSTACK-9200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15958437#comment-15958437
]
ASF GitHub Bot commented on CLOUDSTACK-9200:
--------------------------------------------
Github user rhtyd commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/1282#discussion_r110092518
--- Diff:
engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/XenserverSnapshotStrategy.java
---
@@ -245,6 +245,12 @@ public boolean deleteSnapshot(Long snapshotId) {
return true;
}
+ if(snapshotVO.getState() == Snapshot.State.Allocated) {
--- End diff --
See
https://github.com/apache/cloudstack/pull/1282/files#diff-2b08c10a0eea4bef15bece6ff38ed1f9R223
> Account Resources fail to get cleaned up if a snapshot is in Allocated State
> ----------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9200
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9200
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Anshul Gangwar
> Assignee: Anshul Gangwar
>
> If a snapshot ( Volume ) is in Allocated state (snapshots table), and if we
> delete the account associated with that account, it is removed from UI but
> the account resources (snapshots and virtual machines) are not cleaned up
> because of the failure to delete the snapshot which is in Allocated state.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)