mirror of https://github.com/apache/cloudstack.git
the pool availability part is done by the sp allocators, hence commenting out the code in here.
This commit is contained in:
parent
cac54e1b99
commit
7327906cdf
|
|
@ -4808,29 +4808,29 @@ public class ManagementServerImpl implements ManagementServer {
|
|||
|
||||
if (systemVm.getType().equals(VirtualMachine.Type.ConsoleProxy)){
|
||||
long eventId = EventUtils.saveScheduledEvent(User.UID_SYSTEM, Account.ACCOUNT_ID_SYSTEM, EventTypes.EVENT_PROXY_START, "Starting console proxy with Id: "+id);
|
||||
try {
|
||||
checkIfStoragePoolAvailable(id);
|
||||
} catch (StorageUnavailableException e) {
|
||||
s_logger.warn(e.getMessage());
|
||||
return null;
|
||||
} catch (Exception e){
|
||||
//unforseen exceptions
|
||||
s_logger.warn(e.getMessage());
|
||||
return null;
|
||||
}
|
||||
// try {
|
||||
// checkIfStoragePoolAvailable(id);
|
||||
// } catch (StorageUnavailableException e) {
|
||||
// s_logger.warn(e.getMessage());
|
||||
// return null;
|
||||
// } catch (Exception e){
|
||||
// //unforseen exceptions
|
||||
// s_logger.warn(e.getMessage());
|
||||
// return null;
|
||||
// }
|
||||
return startConsoleProxy(id, eventId);
|
||||
} else {
|
||||
long eventId = EventUtils.saveScheduledEvent(User.UID_SYSTEM, Account.ACCOUNT_ID_SYSTEM, EventTypes.EVENT_SSVM_START, "Starting secondary storage Vm Id: "+id);
|
||||
try {
|
||||
checkIfStoragePoolAvailable(id);
|
||||
} catch (StorageUnavailableException e) {
|
||||
s_logger.warn(e.getMessage());
|
||||
return null;
|
||||
} catch (Exception e){
|
||||
//unforseen exceptions
|
||||
s_logger.warn(e.getMessage());
|
||||
return null;
|
||||
}
|
||||
// try {
|
||||
// checkIfStoragePoolAvailable(id);
|
||||
// } catch (StorageUnavailableException e) {
|
||||
// s_logger.warn(e.getMessage());
|
||||
// return null;
|
||||
// } catch (Exception e){
|
||||
// //unforseen exceptions
|
||||
// s_logger.warn(e.getMessage());
|
||||
// return null;
|
||||
// }
|
||||
return startSecondaryStorageVm(id, eventId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -817,7 +817,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, VirtualM
|
|||
return null;
|
||||
}
|
||||
|
||||
checkIfPoolAvailable(vmId);//throws StorageUnavailableException if pool is not UP
|
||||
// checkIfPoolAvailable(vmId);//throws StorageUnavailableException if pool is not UP
|
||||
|
||||
EventVO event = new EventVO();
|
||||
event.setType(EventTypes.EVENT_VM_START);
|
||||
|
|
|
|||
Loading…
Reference in New Issue