anuragaw commented on a change in pull request #3425: [WIP DO NOT MERGE] Better 
tracking host maintanence success and failure
URL: https://github.com/apache/cloudstack/pull/3425#discussion_r299798308
 
 

 ##########
 File path: api/src/main/java/com/cloud/resource/ResourceState.java
 ##########
 @@ -22,17 +22,26 @@
 import com.cloud.utils.fsm.StateMachine;
 
 public enum ResourceState {
-    Creating, Enabled, Disabled, PrepareForMaintenance, ErrorInMaintenance, 
Maintenance, Error;
+    Creating,
+    Enabled,
+    Disabled,
+    PrepareForMaintenance,
+    ErrorInMaintenance,
+    Maintenance,
+    Error,
+    PrepareForMaintenanceErrorsPresent;
 
 Review comment:
   PrepareForMaintenanceErrorsPresent is a transitional state that can go back 
to PrepareForMaintenance if Admin fixes errors.
   
   This ultimately ends in ErrorInMaintenance or Maintenance state which are 
final states to be reached. Let me update the PR description @rhtyd 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to