mirror of https://github.com/apache/cloudstack.git
some minor adjustments before doing the big work
This commit is contained in:
parent
66573d34f0
commit
f948926a2f
|
|
@ -2157,8 +2157,6 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
throw new PermissionDeniedException("The owner of " + vm + " either does not exist or is disabled: " + vm.getAccountId());
|
||||
}
|
||||
|
||||
|
||||
|
||||
VirtualMachineTemplate template = profile.getTemplate();
|
||||
if (vm.getIsoId() != null) {
|
||||
template = _templateDao.findById(vm.getIsoId());
|
||||
|
|
|
|||
|
|
@ -101,6 +101,4 @@ public interface VirtualMachineManager extends Manager {
|
|||
<T extends VMInstanceVO> T advanceReboot(T vm, Map<VirtualMachineProfile.Param, Object> params, User caller, Account account) throws InsufficientCapacityException, ResourceUnavailableException, ConcurrentOperationException, OperationTimedoutException;
|
||||
|
||||
VMInstanceVO findById(VirtualMachine.Type type, long vmId);
|
||||
|
||||
VirtualMachine start(VirtualMachine.Type type, long vmId, Map<VirtualMachineProfile.Param, Object> params);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -692,7 +692,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, StateLi
|
|||
continue;
|
||||
} catch (RuntimeException e) {
|
||||
s_logger.warn("Failed to start instance " + vm, e);
|
||||
throw new CloudRuntimeException("Failed to start " + vm, e);
|
||||
throw e;
|
||||
} finally {
|
||||
if (startedVm == null) {
|
||||
_workDao.updateStep(work, Step.Release);
|
||||
|
|
@ -1220,12 +1220,6 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, StateLi
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VirtualMachine start(VirtualMachine.Type type, long vmId, Map<VirtualMachineProfile.Param, Object> params) {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VMInstanceVO findById(VirtualMachine.Type type, long vmId) {
|
||||
VirtualMachineGuru<? extends VMInstanceVO> guru = _vmGurus.get(type);
|
||||
|
|
|
|||
Loading…
Reference in New Issue