mirror of https://github.com/apache/cloudstack.git
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
59fd580023
commit
94ff9fe2c1
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue