mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 10688: if the template is not installed in the primary storage, the asking zie is doubled, fixed by using physical size for template
status 10688: resolved fixed
This commit is contained in:
parent
cc9a629cea
commit
0e9d1a8d1d
@ -234,12 +234,12 @@ public abstract class AbstractStoragePoolAllocator extends AdapterBase implement
|
||||
s_logger.info("Did not find template downloaded on secondary hosts in zone " + plan.getDataCenterId());
|
||||
return false;
|
||||
} else {
|
||||
s_logger.debug("For template: " + template.getName() + ", using template size multiplier: " + 2);
|
||||
long templateSize = templateHostVO.getSize();
|
||||
long templatePhysicalSize = templateHostVO.getPhysicalSize();
|
||||
totalAllocatedSize += (templateSize + _extraBytesPerVolume) + (templatePhysicalSize + _extraBytesPerVolume);
|
||||
long templateSize = templateHostVO.getPhysicalSize();
|
||||
if ( templateSize == 0 ){
|
||||
templateSize = templateHostVO.getSize();
|
||||
}
|
||||
totalAllocatedSize += (templateSize + _extraBytesPerVolume);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
long askingSize = dskCh.getSize();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user