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:
anthony 2011-08-10 17:36:24 -07:00
parent 78f88d3985
commit 5639b5eab8

View File

@ -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);
}