anuragaw commented on a change in pull request #3276: [DO NOT MERGE WIP] Add 
more states for attaching disk in allocated state
URL: https://github.com/apache/cloudstack/pull/3276#discussion_r276173055
 
 

 ##########
 File path: api/src/com/cloud/storage/Volume.java
 ##########
 @@ -52,7 +52,8 @@
         UploadInProgress("Volume upload is in progress"),
         UploadError("Volume upload encountered some error"),
         UploadAbandoned("Volume upload is abandoned since the upload was never 
initiated within a specificed time"),
-        Attaching("The volume is attaching to a VM");
+        AttachingFromReady("The volume is attaching to a VM from Ready State"),
+        AttachingFromAllocated("The volume is attaching to a VM from Allocated 
State");
 
 Review comment:
   The reason we need a new state is that if an attach fails we want the disk 
to return to the original state it was in - Ready -> Attaching -> FAIL -> 
Ready, or Allocated -> Attaching -> FAIL -> Allocated.
   
   Perhaps I am misunderstanding something?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to