abh1sar commented on code in PR #11560:
URL: https://github.com/apache/cloudstack/pull/11560#discussion_r2330550106


##########
engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java:
##########
@@ -1476,16 +1476,29 @@ public void orchestrateStart(final String vmUuid, final 
Map<VirtualMachineProfil
 
                     processPrepareExternalProvisioning(firstStart, 
dest.getHost(), vmProfile, dest.getDataCenter());
 
-                    _networkMgr.prepare(vmProfile, dest, ctx);
                     if (vm.getHypervisorType() != HypervisorType.BareMetal && 
vm.getHypervisorType() != HypervisorType.External) {
                         checkAndAttemptMigrateVmAcrossCluster(vm, clusterId, 
dest.getStorageForDisks());
                         volumeMgr.prepare(vmProfile, dest);
                     }
 
+                    Boolean returnAfterVolumePrepare = (Boolean) 
params.get(VirtualMachineProfile.Param.ReturnAfterVolumePrepare);

Review Comment:
   This new parameter is passed from restoreVMFromBackup, to allocate and place 
the volumes on a storage pool but avoid starting the VM. This helps reduce the 
RTO for disaster recovery, by avoiding one start and stop VM cycle.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to