mirror of https://github.com/apache/cloudstack.git
engine/storage: Fix regression on create volume from snapshot (#5282)
* Fix regression on create volume from snapshot
* Log hidden exception
* Revert "Log hidden exception"
This reverts commit 70e655687f.
Co-authored-by: GutoVeronezi <daniel@scclouds.com.br>
This commit is contained in:
parent
43c8da2d0e
commit
1389862c22
|
|
@ -185,6 +185,11 @@ public abstract class AbstractStoragePoolAllocator extends AdapterBase implement
|
|||
pools = reorderPoolsByCapacity(plan, pools);
|
||||
}
|
||||
|
||||
if (vmProfile.getVirtualMachine() == null) {
|
||||
s_logger.trace("The VM is null, skipping pools reordering by disk provisioning type.");
|
||||
return pools;
|
||||
}
|
||||
|
||||
if (vmProfile.getHypervisorType() == HypervisorType.VMware &&
|
||||
!storageMgr.DiskProvisioningStrictness.valueIn(plan.getDataCenterId())) {
|
||||
pools = reorderPoolsByDiskProvisioningType(pools, dskCh);
|
||||
|
|
|
|||
Loading…
Reference in New Issue