You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by gi...@git.apache.org on 2017/05/11 19:48:15 UTC

[GitHub] mike-tutkowski opened a new pull request #2098: Fix for CLOUDSTACK-9660

mike-tutkowski opened a new pull request #2098: Fix for CLOUDSTACK-9660
URL: https://github.com/apache/cloudstack/pull/2098
 
 
   A root volume can be replaced by a different root volume without the VM it belongs to being expunged.
   
   From dev@:
   
   For example: Let?s say we have a system VM running on NFS primary storage. We then put this primary storage into maintenance mode, which creates the system VM (with the same name) on a different primary storage (we do not create a new row in the cloud.vm_instance table for this VM). While this VM works, the original root disk of the system VM remains on the original primary storage and is not destroyed by the code in StorageManagerImpl.cleanupStorage(boolean) in 4.10 because 4.10 (as shown above) only asks for non-root volumes to consider for deletion. In the 4.9 version of the code, the original root disk is cleaned up in StorageManagerImpl.cleanupStorage(boolean). The problem with 4.10 relying on a root disk always being deleted when the VM it belongs to is deleted is that in a situation like this that the system VM doesn?t get deleted at this point ? it gets a new root disk that?s hosted by a different primary storage (so now it?s original root disk is stranded).
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services