mirror of https://github.com/apache/cloudstack.git
listHostsForMigrationOfVM is being called when user attempts to move a VM to other host. This is trying to find list of suitable storage pools that are attached to each of the suitable hosts for the VM. Currently the selection of target storage pools for each volume of the VM is left to storage pool allocators. But user might want to leave his volume unmoved/intact If it is on a zone wide storage pool. This would be more efficient while migrating VM as storage live migration is not required and VM continues to use volumes on same storage pool as before. Hence idea is to set same storage pool as target pool for each of the volume if the volume is already on zone wide storage pool. A comparison of source pool of volume against target pool of volume yields the information if storage migration is required for the VM to move to target host or not. Based on that information apropriate API migrateVM or migrateVmWithVolume could be decided. Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org> |
||
|---|---|---|
| .. | ||
| conf | ||
| resources/com/cloud/upgrade | ||
| scripts | ||
| src | ||
| test | ||
| pom.xml | ||