Skip to content

Commit 665aa6b

Browse files
nitinmehyadvr
authored andcommitted
CLOUDSTACK-7916: Generate Alerts if System VMs cannot be started.
(cherry picked from commit e87bb20) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent a12ab8a commit 665aa6b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ private void allocCapacity(long dataCenterId) {
924924
}
925925
}catch (Exception e){
926926
errorString = e.getMessage();
927+
throw e;
927928
}finally {
928929
// TODO - For now put all the alerts as creation failure. Distinguish between creation vs start failure in future.
929930
// Also add failure reason since startvm masks some of them.

‎services/secondary-storage/controller/src/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ private void allocCapacity(long dataCenterId, SecondaryStorageVm.Role role) {
722722
}
723723
}catch (Exception e){
724724
errorString = e.getMessage();
725+
throw e;
725726
}finally{
726727
// TODO - For now put all the alerts as creation failure. Distinguish between creation vs start failure in future.
727728
// Also add failure reason since startvm masks some of them.

0 commit comments

Comments
 (0)