Skip to content

Commit 62c18ca

Browse files
author
Mike Tutkowski
committed
Fixing an issue in the AbstractStoragePoolAllocator's filter method where zone-wide storage of HypervisorType.Any is skipped
1 parent 8303490 commit 62c18ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎engine/storage/src/org/apache/cloudstack/storage/allocator/AbstractStoragePoolAllocator.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import com.cloud.dc.dao.ClusterDao;
3939
import com.cloud.deploy.DeploymentPlan;
4040
import com.cloud.deploy.DeploymentPlanner.ExcludeList;
41+
import com.cloud.hypervisor.Hypervisor.HypervisorType;
4142
import com.cloud.storage.StorageManager;
4243
import com.cloud.storage.StoragePool;
4344
import com.cloud.storage.Volume;
@@ -171,7 +172,7 @@ protected boolean filter(ExcludeList avoid, StoragePool pool, DiskProfile dskCh,
171172
}
172173
return false;
173174
}
174-
} else if (pool.getHypervisor() != null && !(pool.getHypervisor() == dskCh.getHypervisorType())) {
175+
} else if (pool.getHypervisor() != null && !pool.getHypervisor().equals(HypervisorType.Any) && !(pool.getHypervisor() == dskCh.getHypervisorType())) {
175176
if (s_logger.isDebugEnabled()) {
176177
s_logger.debug("StoragePool does not have required hypervisorType, skipping this pool");
177178
}

0 commit comments

Comments
 (0)