mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-04 00:02:37 +01:00
bug 10504: what is happening is, MS use vdi-copy to create template from volume, then get physical size from XAPI, the physical size might be wrong , SR-SCAN is needed before getting physical size to make XenServer pick the new physical size.
status 10504: resolved fixed
This commit is contained in:
parent
78f88d3985
commit
5639b5eab8
@ -5645,7 +5645,8 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
|
||||
// copy volume to template SR
|
||||
VDI tmpltVDI = cloudVDIcopy(conn, volume, tmpltSR);
|
||||
|
||||
// scan makes XenServer pick up VDI physicalSize
|
||||
tmpltSR.scan(conn);
|
||||
if (userSpecifiedName != null) {
|
||||
tmpltVDI.setNameLabel(conn, userSpecifiedName);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user