weizhouapache commented on PR #6868:
URL: https://github.com/apache/cloudstack/pull/6868#issuecomment-1305873054

   
   > That is not what this PR intends. The current problem is: when a user 
destroys a VM, its root volume will remain in the ready state, but generally 
speaking, when you destroy a VM, you intend to destroy its root volume as well.
   
   @JoaoJandre 
   that's not true. when destroy a vm, the vm is just marked as Destroyed. none 
of its resources  (nics, storage, vm snapshots, etc) are removed.
   If you want to completely remove a vm and its resources, please use 
`expungeVirtualMachine`, or `destroyVirtualMachine` with `expunge=true`
   
   
   
   > The proposed solution is to create a global setting ( which will be 
disabled by default ), that when enabled, ACS will destroy the root volume of a 
VM when that VM is destroyed. However, because of this setting, a new use case 
for restoring VMs is created, to restore a VM with a destroyed root volume. 
Therefore, I created an exception on the volume restore process, so that when 
you try to restore a VM with a destroyed root volume, it will not fail.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to