recreate router if failed

Conflicts:

	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
This commit is contained in:
Edison Su 2012-08-20 10:14:51 -07:00
parent bc906bf54a
commit 0f4ffd8897
1 changed files with 1 additions and 6 deletions

View File

@ -742,12 +742,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
_networkMgr.prepare(vmProfile, dest, ctx);
if (vm.getHypervisorType() != HypervisorType.BareMetal) {
_storageMgr.prepare(vmProfile, dest, recreate);
recreate = false;
}
//since StorageMgr succeeded in volume creation, resue Volume for further tries until current cluster has capacity
if(!reuseVolume){
reuseVolume = true;
}
}
vmGuru.finalizeVirtualMachineProfile(vmProfile, dest, ctx);
VirtualMachineTO vmTO = hvGuru.implement(vmProfile);