GabrielBrascher commented on a change in pull request #2997: Allow KVM VM live
migration with ROOT volume on file storage type
URL: https://github.com/apache/cloudstack/pull/2997#discussion_r233310370
##########
File path:
engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java
##########
@@ -1702,6 +1718,11 @@ public void copyAsync(Map<VolumeInfo, DataStore>
volumeDataStoreMap, VirtualMach
VolumeVO srcVolume =
_volumeDao.findById(srcVolumeInfo.getId());
StoragePoolVO destStoragePool =
_storagePoolDao.findById(destDataStore.getId());
+ StoragePoolVO sourceStoragePool =
_storagePoolDao.findById(srcVolumeInfo.getPoolId());
+
+ if (!shouldMigrateVolume(sourceStoragePool, destHost,
destStoragePool)) {
+ continue;
+ }
Review comment:
@wido now it migrates VMs with an attached volume on shared storage. The
trick here is to skip the volume migration in case the source storage pool is
NFS. This ensures that the VM XML will stay with its original shared attached
volume.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services