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 59fd580023
commit 94ff9fe2c1
1 changed files with 2 additions and 1 deletions

View File

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