cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ynoj...@apache.org
Subject [1/2] git commit: updated refs/heads/remove-root-disk-filtering-logic-for-iscsi-storage to 51cfff4
Date Fri, 27 Jun 2014 08:20:37 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/remove-root-disk-filtering-logic-for-iscsi-storage [created] 51cfff41a


Revert "Fixing an issue introduced with Review Request 22717"

This reverts commit 12e92e10ffbd9f86ebff11c2a1b22c5bafafb3d1.


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

Branch: refs/heads/remove-root-disk-filtering-logic-for-iscsi-storage
Commit: e5e142f08fe3454dbf4cf1bece2e5c3d1a680bc2
Parents: 12e92e1
Author: ynojima <mail@ynojima.net>
Authored: Fri Jun 27 00:49:51 2014 -0600
Committer: ynojima <mail@ynojima.net>
Committed: Fri Jun 27 00:49:51 2014 -0600

----------------------------------------------------------------------
 .../storage/allocator/ZoneWideStoragePoolAllocator.java  | 11 -----------
 1 file changed, 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e5e142f0/engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java
----------------------------------------------------------------------
diff --git a/engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java
b/engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java
index 8246a80..f9abfde 100644
--- a/engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java
+++ b/engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java
@@ -34,7 +34,6 @@ import com.cloud.deploy.DeploymentPlan;
 import com.cloud.deploy.DeploymentPlanner.ExcludeList;
 import com.cloud.hypervisor.Hypervisor.HypervisorType;
 import com.cloud.storage.StoragePool;
-import com.cloud.storage.Volume;
 import com.cloud.user.Account;
 import com.cloud.vm.DiskProfile;
 import com.cloud.vm.VirtualMachineProfile;
@@ -102,16 +101,6 @@ public class ZoneWideStoragePoolAllocator extends AbstractStoragePoolAllocator
{
     }
 
     @Override
-    protected boolean filter(ExcludeList avoid, StoragePool pool, DiskProfile dskCh, DeploymentPlan
plan) {
-        Volume volume = _volumeDao.findById(dskCh.getVolumeId());
-        List<Volume> requestVolumes = new ArrayList<Volume>();
-
-        requestVolumes.add(volume);
-
-        return storageMgr.storagePoolHasEnoughIops(requestVolumes, pool) && storageMgr.storagePoolHasEnoughSpace(requestVolumes,
pool);
-    }
-
-    @Override
     protected List<StoragePool> reorderPoolsByNumberOfVolumes(DeploymentPlan plan,
List<StoragePool> pools, Account account) {
         if (account == null) {
             return pools;


Mime
View raw message