You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2016/11/24 17:27:33 UTC

[1/2] git commit: updated refs/heads/4.8 to 445d36c

Repository: cloudstack
Updated Branches:
  refs/heads/4.8 90ae04b79 -> 445d36c12


CLOUDSTACK-9561 Unable to delete domain/Account


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2c443cd1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2c443cd1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2c443cd1

Branch: refs/heads/4.8
Commit: 2c443cd189664ec35aaeedd7bd447d4fcfce0387
Parents: 5a2a2f4
Author: Sudharma Jain <su...@accelerite.com>
Authored: Thu Oct 27 10:58:37 2016 +0530
Committer: Sudharma Jain <su...@accelerite.com>
Committed: Thu Oct 27 10:58:37 2016 +0530

----------------------------------------------------------------------
 engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2c443cd1/engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java b/engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java
index c7dc33b..6ed556e 100644
--- a/engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java
+++ b/engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java
@@ -96,7 +96,6 @@ public class VolumeDaoImpl extends GenericDaoBase<VolumeVO, Long> implements Vol
     public List<VolumeVO> findByAccount(long accountId) {
         SearchCriteria<VolumeVO> sc = AllFieldsSearch.create();
         sc.setParameters("accountId", accountId);
-        sc.setParameters("state", Volume.State.Ready);
         return listBy(sc);
     }
 


[2/2] git commit: updated refs/heads/4.8 to 445d36c

Posted by bh...@apache.org.
Merge PR #1737

CLOUDSTACK-9561 After domain/account deletion, snapshot taken by the
domain/account remains undeleted

While deleting the UserAccount Cleanup for the removed VMs/volumes are not
happening. For the removed VMs, snapshots doesn't get cleaned. Only for running
VMs(volumes in ready state) the cleanup happens.

When the VM is desroyed, the volume is marked as destroyed and later storage
garbage collector perform the cleanup. But if we try delete domain/account
before storage garbage collector runs, then it fails.

Signed-off-by: Rohit Yadav <ro...@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/445d36c1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/445d36c1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/445d36c1

Branch: refs/heads/4.8
Commit: 445d36c1228ea8329dc3f1349e10ff38c671674b
Parents: 90ae04b 2c443cd
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Thu Nov 24 22:56:05 2016 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Thu Nov 24 22:56:22 2016 +0530

----------------------------------------------------------------------
 engine/schema/src/com/cloud/storage/dao/VolumeDaoImpl.java | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------